From ee68d9df8e6b53476bb3bce8a024da60f9310a8b Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 19 Mar 2022 13:55:11 +0000 Subject: x1000: bootloader: display uimage load error code Change-Id: I08361aa85406303c10bb487636a6a61a93d2b127 --- bootloader/x1000/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootloader/x1000') diff --git a/bootloader/x1000/utils.c b/bootloader/x1000/utils.c index 681ddbbd62..b8f86c3ed1 100644 --- a/bootloader/x1000/utils.c +++ b/bootloader/x1000/utils.c @@ -114,7 +114,7 @@ int load_uimage_file(const char* filename, int handle = uimage_load(uh, sizep, uimage_fd_reader, (void*)(intptr_t)fd); if(handle <= 0) { - splashf(5*HZ, "Cannot load uImage\n%s", filename); + splashf(5*HZ, "Cannot load uImage (%d)\n%s", handle, filename); return -3; } @@ -166,7 +166,7 @@ int load_uimage_flash(uint32_t addr, uint32_t length, nand_unlock(n.ndrv); if(handle <= 0) { - splashf(5*HZ, "uImage load failed"); + splashf(5*HZ, "uImage load failed (%d)", handle); return -2; } -- cgit v1.2.3