mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
x1000: bootloader: display uimage load error code
Change-Id: I08361aa85406303c10bb487636a6a61a93d2b127
This commit is contained in:
parent
fbe9e4ac10
commit
ee68d9df8e
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ int load_uimage_file(const char* filename,
|
||||||
|
|
||||||
int handle = uimage_load(uh, sizep, uimage_fd_reader, (void*)(intptr_t)fd);
|
int handle = uimage_load(uh, sizep, uimage_fd_reader, (void*)(intptr_t)fd);
|
||||||
if(handle <= 0) {
|
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;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ int load_uimage_flash(uint32_t addr, uint32_t length,
|
||||||
nand_unlock(n.ndrv);
|
nand_unlock(n.ndrv);
|
||||||
|
|
||||||
if(handle <= 0) {
|
if(handle <= 0) {
|
||||||
splashf(5*HZ, "uImage load failed");
|
splashf(5*HZ, "uImage load failed (%d)", handle);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue