summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2006-08-11 20:49:58 +0200
committerMichael Brown2006-08-11 20:49:58 +0200
commitc48170ffaf32458d0646567488d5b0f58750704a (patch)
tree522894b5714f9387554c7e2c2f7601730a4d665b /src/tests
parentAdded cmdl_show proof-of-concept (diff)
downloadipxe-c48170ffaf32458d0646567488d5b0f58750704a.tar.gz
ipxe-c48170ffaf32458d0646567488d5b0f58750704a.tar.xz
ipxe-c48170ffaf32458d0646567488d5b0f58750704a.zip
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 38bbac37..15e39c8b 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 ) {