diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-02-28 18:43:54 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-02-28 18:43:54 +0000 |
commit | e583afb977d703d239d0827b78abbf5d54996c3d (patch) | |
tree | 84bd93d4630fb87f82c086cc33438a94ef3c7227 /src/usr/autoboot.c | |
parent | 7617e36f9e21808c71fb54ac476f6d3eb2f5fff9 (diff) | |
download | ipxe-e583afb977d703d239d0827b78abbf5d54996c3d.tar.gz |
[autoboot] Use a custom error number for "nothing to boot"
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r-- | src/usr/autoboot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 407e73869..0fe00b360 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -41,6 +41,11 @@ FILE_LICENCE ( GPL2_OR_LATER ); * */ +/* Disambiguate the various error causes */ +#define ENOENT_BOOT __einfo_error ( EINFO_ENOENT_BOOT ) +#define EINFO_ENOENT_BOOT \ + __einfo_uniqify ( EINFO_ENOENT, 0x01, "Nothing to boot" ) + /** * Perform PXE menu boot when PXE stack is not available */ @@ -185,7 +190,7 @@ int uriboot ( struct uri *filename, struct uri *root_path ) { rc = 0; } } else { - rc = -ENOENT; + rc = -ENOENT_BOOT; printf ( "Nothing to boot: %s\n", strerror ( rc ) ); } |