summaryrefslogtreecommitdiffstats
path: root/src/tests/dhcptest.c
diff options
context:
space:
mode:
authorMichael Brown2006-07-20 16:20:11 +0200
committerMichael Brown2006-07-20 16:20:11 +0200
commit9e761f5f282407868f89bceed0d50749032e3b1b (patch)
tree3e2eed271a550f11e0e6c836baf3d922a885881a /src/tests/dhcptest.c
parentAllow an AoE boot to be directed via DHCP, so that we have a proof of (diff)
downloadipxe-9e761f5f282407868f89bceed0d50749032e3b1b.tar.gz
ipxe-9e761f5f282407868f89bceed0d50749032e3b1b.tar.xz
ipxe-9e761f5f282407868f89bceed0d50749032e3b1b.zip
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.
Diffstat (limited to 'src/tests/dhcptest.c')
-rw-r--r--src/tests/dhcptest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c
index d1d7df0f3..3661d66fa 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 );