diff options
| author | Michael Brown | 2009-11-17 04:46:45 +0100 |
|---|---|---|
| committer | Michael Brown | 2009-11-18 03:44:40 +0100 |
| commit | 5bee2a2991207e3b16930e0a58fb0aa0881ae486 (patch) | |
| tree | 6491ce5ff446a7e9f4d5641fe4664c898a4382f6 /src/arch | |
| parent | [linda] Re-import the latest register definitions (diff) | |
| download | ipxe-5bee2a2991207e3b16930e0a58fb0aa0881ae486.tar.gz ipxe-5bee2a2991207e3b16930e0a58fb0aa0881ae486.tar.xz ipxe-5bee2a2991207e3b16930e0a58fb0aa0881ae486.zip | |
[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.
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/interface/pcbios/aoeboot.c | 2 | ||||
| -rw-r--r-- | src/arch/i386/interface/pcbios/iscsiboot.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/arch/i386/interface/pcbios/aoeboot.c b/src/arch/i386/interface/pcbios/aoeboot.c index fcab42b01..8446c15f9 100644 --- a/src/arch/i386/interface/pcbios/aoeboot.c +++ b/src/arch/i386/interface/pcbios/aoeboot.c @@ -20,8 +20,6 @@ static int aoeboot ( const char *root_path ) { memset ( &ata, 0, sizeof ( ata ) ); memset ( &drive, 0, sizeof ( drive ) ); - printf ( "AoE booting from %s\n", root_path ); - /* FIXME: ugly, ugly hack */ struct net_device *netdev = last_opened_netdev(); diff --git a/src/arch/i386/interface/pcbios/iscsiboot.c b/src/arch/i386/interface/pcbios/iscsiboot.c index d8bb55a20..00efd8ffe 100644 --- a/src/arch/i386/interface/pcbios/iscsiboot.c +++ b/src/arch/i386/interface/pcbios/iscsiboot.c @@ -27,8 +27,6 @@ static int iscsiboot ( const char *root_path ) { goto err_alloc_drive; } - printf ( "iSCSI booting from %s\n", root_path ); - if ( ( rc = iscsi_attach ( scsi, root_path ) ) != 0 ) { printf ( "Could not attach iSCSI device: %s\n", strerror ( rc ) ); |
