]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: spl: Print srcaddr in error message
authorMarek Behún <marek.behun@nic.cz>
Fri, 14 Jan 2022 13:31:42 +0000 (14:31 +0100)
committerStefan Roese <sr@denx.de>
Thu, 20 Jan 2022 10:35:29 +0000 (11:35 +0100)
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>
arch/arm/mach-mvebu/spl.c

index 72cc2f92f6986a80bd79dfe2374e8eba1fb7efaa..eacac776530ceec8973b71d0d069c32b0af79d18 100644 (file)
@@ -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;