소스 검색

Print out "DHCP..." message just in case people think the demo is sitting

there doing nothing when it's actually waiting for a DHCP reply.
tags/v0.9.3
Michael Brown 18 년 전
부모
커밋
9e761f5f28
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      src/tests/dhcptest.c

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

@@ -18,10 +18,14 @@ int test_dhcp ( struct net_device *netdev ) {
18 18
 		goto out_no_del_ipv4;
19 19
 
20 20
 	/* Issue DHCP request */
21
+	printf ( "DHCP..." );
21 22
 	memset ( &dhcp, 0, sizeof ( dhcp ) );
22 23
 	dhcp.netdev = netdev;
23
-	if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 )
24
+	if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {
25
+		printf ( "failed\n" );
24 26
 		goto out_no_options;
27
+	}
28
+	printf ( "done\n" );
25 29
 
26 30
 	/* Register options received via DHCP */
27 31
 	register_dhcp_options ( dhcp.options );

Loading…
취소
저장