2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-23 19:51:46 +00:00

Print net device name when making request.

This commit is contained in:
Michael Brown 2006-08-11 18:49:58 +00:00
parent 3c35a0b16d
commit c48170ffaf

View File

@ -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 ) {