[PATCH 1/1] cmd: upl: correct printf code
Simon Glass
sjg at chromium.org
Fri Oct 18 16:52:33 CEST 2024
On Thu, 17 Oct 2024 at 20:47, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Building on 32-bit results in a build failure:
>
> cmd/upl.c:75:51: warning: format ‘%lx’ expects argument of type
> ‘long unsigned int’, but argument 3 has type ‘size_t’
> {aka ‘unsigned int’} [-Wformat=]
> 75 | printf("UPL handoff written to %lx size %lx\n", addr, abuf_size(&buf));
> | ~~^ ~~~~~~~~~~~~~~~
> | | |
> | | size_t {aka unsigned int}
> | long unsigned int
> | %x
>
> Fixes: 264f4b0b34c0 ("upl: Add a command")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> cmd/upl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
Thanks
More information about the U-Boot
mailing list