summaryrefslogtreecommitdiffstats
path: root/src/usr/autoboot.c
diff options
context:
space:
mode:
authorJoshua Oreman2009-06-19 11:08:21 +0200
committerMichael Brown2009-06-24 14:15:27 +0200
commit4125216a2f88c1e4c9fd33931d1249b8afc2f923 (patch)
treead9d8013d96ed1f55549fb044d59410e086ab53b /src/usr/autoboot.c
parent[netdevice] Add mechanism for reporting detailed link status codes (diff)
downloadipxe-4125216a2f88c1e4c9fd33931d1249b8afc2f923.tar.gz
ipxe-4125216a2f88c1e4c9fd33931d1249b8afc2f923.tar.xz
ipxe-4125216a2f88c1e4c9fd33931d1249b8afc2f923.zip
[ifmgmt] Move link-up status messages from autoboot() to iflinkwait()
With the addition of link status codes, we can now display a detailed error indication if iflinkwait() fails. Putting the error output in iflinkwait avoids code duplication, and gains symmetry with the other interface management routines; ifopen() already prints an error directly if it cannot open its interface. Modified-by: Michael Brown <mcb30@etherboot.org> Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r--src/usr/autoboot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index a99d12b13..41b6d3f47 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -154,12 +154,8 @@ static int netboot ( struct net_device *netdev ) {
ifstat ( netdev );
/* Wait for link-up */
- printf ( "Waiting for link-up on %s...", netdev->name );
- if ( ( rc = iflinkwait ( netdev, LINK_WAIT_MS ) ) != 0 ) {
- printf ( " no link detected\n" );
+ if ( ( rc = iflinkwait ( netdev, LINK_WAIT_MS ) ) != 0 )
return rc;
- }
- printf ( " ok\n" );
/* Configure device via DHCP */
if ( ( rc = dhcp ( netdev ) ) != 0 )