Browse Source

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 years ago
parent
commit
9e761f5f28
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/tests/dhcptest.c

+ 5
- 1
src/tests/dhcptest.c View File

@@ -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…
Cancel
Save