소스 검색

Print net device name when making request.

tags/v0.9.3
Michael Brown 19 년 전
부모
커밋
c48170ffaf
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/tests/dhcptest.c

+ 2
- 1
src/tests/dhcptest.c 파일 보기

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…
취소
저장