[PATCH u-boot-marvell v2 6/9] arm: mvebu: spl: Print srcaddr in error message

Stefan Roese sr at denx.de
Tue Nov 30 07:20:28 CET 2021


On 11/26/21 15:37, Marek Behún wrote:
> From: Marek Behún <marek.behun at nic.cz>
> 
> Print the wrong srcaddr (spl_image->offset) in error message also for
> SATA case.
> 
> Signed-off-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   arch/arm/mach-mvebu/spl.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
> index af9e45ac7a..8c8cbc833f 100644
> --- a/arch/arm/mach-mvebu/spl.c
> +++ b/arch/arm/mach-mvebu/spl.c
> @@ -190,7 +190,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 SATA srcaddr (%u) in kwbimage\n",
> +			       spl_image->offset);
>   			return -EINVAL;
>   		}
>   		spl_image->offset -= 1;
> 

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list