aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2021-04-08 12:30:55 +0530
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-04-10 12:00:24 +0200
commit5c3de47caa8163955b0df4761b7fb1a253aae1e8 (patch)
tree54235624268e11f6c76786f8355edd336e51335c /lib
parentdd40cf6f1fa4a6828de19c3479934ed7409af303 (diff)
downloadu-boot-5c3de47caa8163955b0df4761b7fb1a253aae1e8.zip
u-boot-5c3de47caa8163955b0df4761b7fb1a253aae1e8.tar.gz
u-boot-5c3de47caa8163955b0df4761b7fb1a253aae1e8.tar.bz2
efi_loader: efi_esrt: Fix the build warning for 32 bit systems
Fix the build warning when building for 32 bit systems by using the length modifier for size_t. lib/efi_loader/efi_esrt.c: In function ‘efi_esrt_populate’: include/efi_loader.h:126:8: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_esrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_esrt.c b/lib/efi_loader/efi_esrt.c
index 947bdb5..8815e56 100644
--- a/lib/efi_loader/efi_esrt.c
+++ b/lib/efi_loader/efi_esrt.c
@@ -341,7 +341,7 @@ efi_status_t efi_esrt_populate(void)
return EFI_SUCCESS;
}
- EFI_PRINT("ESRT populate esrt from (%ld) available FMP handles\n",
+ EFI_PRINT("ESRT populate esrt from (%zd) available FMP handles\n",
no_handles);
/*