Browse Source

Print net device name when making request.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
c48170ffaf
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/tests/dhcptest.c

+ 2
- 1
src/tests/dhcptest.c View File

@@ -4,6 +4,7 @@
4 4
 #include <gpxe/ip.h>
5 5
 #include <gpxe/dhcp.h>
6 6
 #include <gpxe/iscsi.h>
7
+#include <gpxe/netdevice.h>
7 8
 
8 9
 static int test_dhcp_aoe_boot ( struct net_device *netdev,
9 10
 				char *aoename ) {
@@ -120,7 +121,7 @@ int test_dhcp ( struct net_device *netdev ) {
120 121
 		goto out_no_del_ipv4;
121 122
 
122 123
 	/* Issue DHCP request */
123
-	printf ( "DHCP..." );
124
+	printf ( "DHCP (%s)...", netdev_name ( netdev ) );
124 125
 	memset ( &dhcp, 0, sizeof ( dhcp ) );
125 126
 	dhcp.netdev = netdev;
126 127
 	if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {

Loading…
Cancel
Save