浏览代码

Print net device name when making request.

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
c48170ffaf
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/tests/dhcptest.c

+ 2
- 1
src/tests/dhcptest.c 查看文件

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

正在加载...
取消
保存