summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-04-06 02:32:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-04-06 02:34:29 +0200
commitda8c9a7e035df0ad9e748caacc654b23a5901af9 (patch)
treebe62550a3a61c2edd1a6bcc131ead6e4b570ab44
parent803e1543c774763e92f14016f3d306aabf657153 (diff)
boot_script: Explicit missing symbol name
* kern/boot_script.c: Include <kern/printf.h>. (boot_script_exec): Print missing symbol name on symbol lookup error.
-rw-r--r--kern/boot_script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/boot_script.c b/kern/boot_script.c
index d937a26f..9e8f60a7 100644
--- a/kern/boot_script.c
+++ b/kern/boot_script.c
@@ -4,6 +4,7 @@
#include <mach/mach_types.h>
#include <string.h>
+#include <kern/printf.h>
#include "boot_script.h"
@@ -558,6 +559,7 @@ boot_script_exec (void)
if (sym->type == VAL_NONE)
{
error = BOOT_SCRIPT_UNDEF_SYM;
+ printf("bootstrap script missing symbol '%s'\n", sym->name);
goto done;
}
arg->type = sym->type;