aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2006-08-11 18:49:58 +0000
committerMichael Brown <mcb30@etherboot.org>2006-08-11 18:49:58 +0000
commitc48170ffaf32458d0646567488d5b0f58750704a (patch)
tree522894b5714f9387554c7e2c2f7601730a4d665b /src/tests
parent3c35a0b16de4b1251bc91318716436f5860f95e2 (diff)
downloadipxe-c48170ffaf32458d0646567488d5b0f58750704a.zip
ipxe-c48170ffaf32458d0646567488d5b0f58750704a.tar.gz
ipxe-c48170ffaf32458d0646567488d5b0f58750704a.tar.bz2
Print net device name when making request.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/dhcptest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c
index 38bbac3..15e39c8 100644
--- a/src/tests/dhcptest.c
+++ b/src/tests/dhcptest.c
@@ -4,6 +4,7 @@
#include <gpxe/ip.h>
#include <gpxe/dhcp.h>
#include <gpxe/iscsi.h>
+#include <gpxe/netdevice.h>
static int test_dhcp_aoe_boot ( struct net_device *netdev,
char *aoename ) {
@@ -120,7 +121,7 @@ int test_dhcp ( struct net_device *netdev ) {
goto out_no_del_ipv4;
/* Issue DHCP request */
- printf ( "DHCP..." );
+ printf ( "DHCP (%s)...", netdev_name ( netdev ) );
memset ( &dhcp, 0, sizeof ( dhcp ) );
dhcp.netdev = netdev;
if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {