summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/autoboot.c7
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 ) );
}