
On 11/16/18 4:13 PM, Bin Meng wrote:
Hi,
Build qemu-riscv32_defconfig with CONFIG_CMD_BOOTEFI_SELFTEST=y, the following build warnings were seen.
In file included from lib/efi_selftest/efi_selftest_unicode_collation.c:10:0: lib/efi_selftest/efi_selftest_unicode_collation.c: In function 'test_stri_coll': lib/efi_selftest/efi_selftest_unicode_collation.c:55:4: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'ssize_t {aka long int}' [-Wformat=] "stri_coll("%ps", "%ps") = %zu\n", c1, c2, ret); ^ include/efi_selftest.h:33:30: note: in definition of macro 'efi_st_error' efi_st_printc(EFI_LIGHTRED, __VA_ARGS__)) ^~~~~~~~~~~ lib/efi_selftest/efi_selftest_unicode_collation.c:63:4: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'ssize_t {aka long int}' [-Wformat=] "stri_coll("%ps", "%ps") = %zu\n", c1, c3, ret); ^ include/efi_selftest.h:33:30: note: in definition of macro 'efi_st_error' efi_st_printc(EFI_LIGHTRED, __VA_ARGS__)) ^~~~~~~~~~~ lib/efi_selftest/efi_selftest_unicode_collation.c:71:4: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'ssize_t {aka long int}' [-Wformat=] "stri_coll("%ps", "%ps") = %zu\n", c3, c1, ret); ^ include/efi_selftest.h:33:30: note: in definition of macro 'efi_st_error' efi_st_printc(EFI_LIGHTRED, __VA_ARGS__)) ^~~~~~~~~~~
Could you please take a look?
Regards, Bin
Hello Bin,
thanks for reporting.
Alex has merged into efi-next
https://github.com/agraf/u-boot/commit/52df421e3987c35291bdf8c7c9a46f83ae3d0... efi_loader: do not use unsupported printf code
This should solve the problem you are reporting.
Best regards
Heinrich