[PATCH 1/2] bootm: adjust the print format

Mattijs Korpershoek mkorpershoek at baylibre.com
Mon Aug 26 08:34:52 CEST 2024


Hi Dario,

Thank you for the patch.

On dim., août 25, 2024 at 14:26, Dario Binacchi <dario.binacchi at amarulasolutions.com> wrote:

> All three addresses printed are in hexadecimal format, but only the
> first two have the "0x" prefix. The patch aligns the format of the
> "end" address with the other two by adding the "0x" prefix.
>
> Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>

Reviewed-by: Mattijs Korpershoek <mkorpershoek at baylibre.com>

> ---
>
>  boot/bootm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/boot/bootm.c b/boot/bootm.c
> index 480f8e6a0e6e..951e549f19ff 100644
> --- a/boot/bootm.c
> +++ b/boot/bootm.c
> @@ -703,7 +703,7 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress)
>  
>  		/* Handle BOOTM_STATE_LOADOS */
>  		if (relocated_addr != load) {
> -			printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n",
> +			printf("Moving Image from 0x%lx to 0x%lx, end=0x%lx\n",
>  			       load, relocated_addr,
>  			       relocated_addr + image_size);
>  			memmove((void *)relocated_addr, load_buf, image_size);
> -- 
> 2.43.0


More information about the U-Boot mailing list