efi_loader: efi_esrt: Fix the build warning for 32 bit systems
PATCH 1/1 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=]
--- lib/efi_loader/efi_esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/efi_loader/efi_esrt.c +1 -1
@@ -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);/*
Signature · 1 line
2.17.1
PATCH 1/1 efi_loader: efi_esrt: Fix the build warning for 32 bit systems
Quoted 5 lines · Sughosh Ganu
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=]
Quoted 20 lines
Signed-off-by Sughosh Ganu <[email protected]>--- lib/efi_loader/efi_esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/efi_loader/efi_esrt.c +1
-1@@ -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);/*