iPXE - Open Source Boot Firmware

[autoboot] Ensure that an error message is always printed for a boot failure
authorMichael Brown <mcb30@etherboot.org>
Tue, 17 Nov 2009 03:46:45 +0000 (03:46 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 18 Nov 2009 02:44:40 +0000 (02:44 +0000)
commit5bee2a2991207e3b16930e0a58fb0aa0881ae486
tree6491ce5ff446a7e9f4d5641fe4664c898a4382f6
parentf406edefae61b9c0e936d0ff9fe16c0aa0ab3f79
[autoboot] Ensure that an error message is always printed for a boot failure

The case of an unsupported SAN protocol will currently not result in
any error message.  Fix by printing the error message at the top level
using strerror(), rather than using hard-coded error messages in the
error paths.
src/arch/i386/interface/pcbios/aoeboot.c
src/arch/i386/interface/pcbios/iscsiboot.c
src/usr/autoboot.c