mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
arm: mvebu: spl: Print srcaddr in error message
Print the wrong srcaddr (spl_image->offset) in error message also for SATA case. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
402e84ee88
commit
62ee75a30d
1 changed files with 2 additions and 1 deletions
|
@ -189,7 +189,8 @@ int spl_parse_board_header(struct spl_image_info *spl_image,
|
|||
*/
|
||||
if (mhdr->blockid == IBR_HDR_SATA_ID) {
|
||||
if (spl_image->offset < 1) {
|
||||
printf("ERROR: Wrong SATA srcaddr in kwbimage\n");
|
||||
printf("ERROR: Wrong srcaddr (0x%08x) in SATA kwbimage\n",
|
||||
spl_image->offset);
|
||||
return -EINVAL;
|
||||
}
|
||||
spl_image->offset -= 1;
|
||||
|
|
Loading…
Reference in a new issue