[U-Boot] [PATCH v2] common: fdt_support: print hexadecimal numbers in debug

Lokesh Vutla lokeshvutla at ti.com
Thu Dec 6 10:54:34 UTC 2018



On 06/12/18 3:20 PM, Sekhar Nori wrote:
> We usually deal with hexadecimal addresses and sizes in
> device-tree. Its much easier if debug logs print hexadecimal
> values too.
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Sekhar Nori <nsekhar at ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla at ti.com>

Thanks and regards,
Lokesh

> ---
>   common/fdt_support.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index 3440e42a257b..42583e3ed8c8 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c
> @@ -1025,7 +1025,7 @@ static u64 of_bus_default_map(fdt32_t *addr, const fdt32_t *range,
>   	s  = fdt_read_number(range + na + pna, ns);
>   	da = fdt_read_number(addr, na);
>   
> -	debug("OF: default map, cp=%llu, s=%llu, da=%llu\n", cp, s, da);
> +	debug("OF: default map, cp=%llx, s=%llx, da=%llx\n", cp, s, da);
>   
>   	if (da < cp || da >= (cp + s))
>   		return OF_BAD_ADDR;
> @@ -1080,7 +1080,7 @@ static u64 of_bus_isa_map(fdt32_t *addr, const fdt32_t *range,
>   	s  = fdt_read_number(range + na + pna, ns);
>   	da = fdt_read_number(addr + 1, na - 1);
>   
> -	debug("OF: ISA map, cp=%llu, s=%llu, da=%llu\n", cp, s, da);
> +	debug("OF: ISA map, cp=%llx, s=%llx, da=%llx\n", cp, s, da);
>   
>   	if (da < cp || da >= (cp + s))
>   		return OF_BAD_ADDR;
> 


More information about the U-Boot mailing list