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

Loading…
Cancel
Save