diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-27 06:58:48 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-06-02 09:16:13 +0800 |
commit | d7413deaddfc247a0d911fcfdcccba412e3661ed (patch) | |
tree | 57fdce13834d30219a0a175c0de86110b8fd6d53 /arch/x86/lib | |
parent | 609b90a6a9c0da42c4e52cd519bfd546367fa880 (diff) | |
download | u-boot-d7413deaddfc247a0d911fcfdcccba412e3661ed.tar.gz u-boot-d7413deaddfc247a0d911fcfdcccba412e3661ed.tar.xz u-boot-d7413deaddfc247a0d911fcfdcccba412e3661ed.zip |
x86: spl: Print the error on SPL failure
The error code is often useful to figure out what is going on. Printing it
does not increase code size much, so print out the error and then hang.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/spl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index b6f9a70ba7..cf22fa2d7b 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -164,8 +164,8 @@ void board_init_f(ulong flags) ret = x86_spl_init(); if (ret) { - debug("Error %d\n", ret); - panic("x86_spl_init fail"); + printf("x86_spl_init: error %d\n", ret); + hang(); } #if IS_ENABLED(CONFIG_TPL) || IS_ENABLED(CONFIG_SYS_COREBOOT) gd->bd = malloc(sizeof(*gd->bd)); |