mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
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>
This commit is contained in:
parent
609b90a6a9
commit
d7413deadd
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user