]> git.baikalelectronics.ru Git - uboot.git/commit
test: fdt: fix run_commandf() warnings
authorEvgeny Bachinin <EABachinin@sberdevices.ru>
Mon, 20 Mar 2023 08:23:13 +0000 (11:23 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commitf180a98e9a0b36be3a96a3601271cb30eb4b3a03
tree2ed6e7457868bcc136fe21a6b160ea052d968f84
parent21b31005fe82f328a49ca0075c634cb709975a4e
test: fdt: fix run_commandf() warnings

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@sberdevices.ru>
Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Fixup testcases added since patch was posted]
Signed-off-by: Tom Rini <trini@konsulko.com>
test/cmd/fdt.c