[PATCH v1 3/4] test: fdt: fix run_commandf() warnings
Simon Glass
sjg at chromium.org
Fri Mar 10 21:49:50 CET 2023
On Fri, 10 Mar 2023 at 10:55, Evgeny Bachinin <EABachinin at sberdevices.ru> wrote:
>
> Fix warnings both for 32bit and 64bit architecture after adding
> printf-like attribute format for run_commandf():
> warning: format ‘%x’ expects argument of type ‘unsigned int’, but
> argument 2 has type ‘ulong {aka long unsigned int}’ [-Wformat=]
> ret = run_commandf("fdt addr -c %08x", addr);
> ^
> Signed-off-by: Evgeny Bachinin <EABachinin at sberdevices.ru>
> ---
> test/cmd/fdt.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list