Print out "DHCP..." message just in case people think the demo is sitting
authorMichael Brown <mcb30@etherboot.org>
Thu, 20 Jul 2006 14:20:11 +0000 (14:20 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 20 Jul 2006 14:20:11 +0000 (14:20 +0000)
there doing nothing when it's actually waiting for a DHCP reply.

src/tests/dhcptest.c

index d1d7df0..3661d66 100644 (file)
@@ -18,10 +18,14 @@ int test_dhcp ( struct net_device *netdev ) {
                goto out_no_del_ipv4;
 
        /* Issue DHCP request */
+       printf ( "DHCP..." );
        memset ( &dhcp, 0, sizeof ( dhcp ) );
        dhcp.netdev = netdev;
-       if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 )
+       if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {
+               printf ( "failed\n" );
                goto out_no_options;
+       }
+       printf ( "done\n" );
 
        /* Register options received via DHCP */
        register_dhcp_options ( dhcp.options );