summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2022-01-14 16:31:42 +0300
committerStefan Roese <sr@denx.de>2022-01-20 13:35:29 +0300
commit62ee75a30d1aa0d8526fd2b8834bb28f885f9e94 (patch)
treefdb6657679fb979a92506a0efe682689fae8b455 /arch
parent402e84ee88f27450e0cf055ab58dafc4417b81df (diff)
downloadu-boot-62ee75a30d1aa0d8526fd2b8834bb28f885f9e94.tar.xz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mvebu/spl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
index 72cc2f92f6..eacac77653 100644
--- a/arch/arm/mach-mvebu/spl.c
+++ b/arch/arm/mach-mvebu/spl.c
@@ -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;