]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: wrong printf format in efi_image_parse
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 7 Jul 2020 05:23:44 +0000 (07:23 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 11 Jul 2020 21:14:16 +0000 (23:14 +0200)
commitdfb49b72345d1f7de082c9f38918c638d40c934d
treeb9d11dc655f2e30c448c0d3a8bb2891f772a48ed
parent48fb099af2ac6eb9722951ddec88d9ca6e51c3b6
efi_loader: wrong printf format in efi_image_parse

Commit ec87ae0ddcca ("efi_loader: image_loader: replace debug to
EFI_PRINT") leads to a build warning on 32bit systems:

lib/efi_loader/efi_image_loader.c: In function ‘efi_image_parse’:
include/efi_loader.h:123:8: warning: format ‘%lu’ expects argument
of type ‘long unsigned int’, but argument 8 has
type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]

Use %zu for printing size_t.

Fixes: ec87ae0ddcca ("efi_loader: image_loader: replace debug to
EFI_PRINT")

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_image_loader.c