summaryrefslogtreecommitdiffstats
path: root/src/usr/dhcpmgmt.c
diff options
context:
space:
mode:
authorMichael Brown2007-08-03 13:49:21 +0200
committerMichael Brown2007-08-03 13:49:21 +0200
commit218651e1259da924a19db66e7cb9ae885075892f (patch)
treede255dec650ac21b552c04d9ce83578ef7cd4cdc /src/usr/dhcpmgmt.c
parentPrint multiple commands per line in help (diff)
downloadipxe-218651e1259da924a19db66e7cb9ae885075892f.tar.gz
ipxe-218651e1259da924a19db66e7cb9ae885075892f.tar.xz
ipxe-218651e1259da924a19db66e7cb9ae885075892f.zip
Display name and status of each file as it is downloaded.
Diffstat (limited to 'src/usr/dhcpmgmt.c')
-rw-r--r--src/usr/dhcpmgmt.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c
index f1eb2d63..bd05c5ee 100644
--- a/src/usr/dhcpmgmt.c
+++ b/src/usr/dhcpmgmt.c
@@ -56,15 +56,9 @@ int dhcp ( struct net_device *netdev ) {
}
/* Perform DHCP */
- printf ( "DHCP (%s %s)...", netdev->name, netdev_hwaddr ( netdev ) );
+ printf ( "DHCP (%s %s)", netdev->name, netdev_hwaddr ( netdev ) );
if ( ( rc = start_dhcp ( &monojob, netdev, dhcp_success ) ) == 0 )
- rc = monojob_wait();
-
- if ( rc == 0 ) {
- printf ( "done\n" );
- } else {
- printf ( "failed (%s)\n", strerror ( rc ) );
- }
+ rc = monojob_wait ( "" );
return rc;
}