From 9e761f5f282407868f89bceed0d50749032e3b1b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 20 Jul 2006 14:20:11 +0000 Subject: [PATCH] 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. --- src/tests/dhcptest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index d1d7df0f..3661d66f 100644 --- a/src/tests/dhcptest.c +++ b/src/tests/dhcptest.c @@ -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 );