[ifmgmt] Move link-up status messages from autoboot() to iflinkwait()
authorJoshua Oreman <oremanj@rwcr.net>
Fri, 19 Jun 2009 09:08:21 +0000 (02:08 -0700)
committerMichael Brown <mcb30@etherboot.org>
Wed, 24 Jun 2009 12:15:27 +0000 (13:15 +0100)
commit4125216a2f88c1e4c9fd33931d1249b8afc2f923
treead9d8013d96ed1f55549fb044d59410e086ab53b
parenta310d00d37f8362b48913972927bfb78e7d7586d
[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>
src/usr/autoboot.c
src/usr/ifmgmt.c