diff options
author | Michael Brown | 2011-02-28 19:43:54 +0100 |
---|---|---|
committer | Michael Brown | 2011-02-28 19:43:54 +0100 |
commit | e583afb977d703d239d0827b78abbf5d54996c3d (patch) | |
tree | 84bd93d4630fb87f82c086cc33438a94ef3c7227 /src/usr/autoboot.c | |
parent | [autoboot] Add an iPXE error URI to the "nothing to boot" message (diff) | |
download | ipxe-e583afb977d703d239d0827b78abbf5d54996c3d.tar.gz ipxe-e583afb977d703d239d0827b78abbf5d54996c3d.tar.xz ipxe-e583afb977d703d239d0827b78abbf5d54996c3d.zip |
[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 407e7386..0fe00b36 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 ) ); } |