All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] efi_selftest_unicode_collation.c: build warning
@ 2018-11-16 15:13 Bin Meng
  2018-11-16 18:05 ` Heinrich Schuchardt
  0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2018-11-16 15:13 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] efi_selftest_unicode_collation.c: build warning
  2018-11-16 15:13 [U-Boot] efi_selftest_unicode_collation.c: build warning Bin Meng
@ 2018-11-16 18:05 ` Heinrich Schuchardt
  0 siblings, 0 replies; 2+ messages in thread
From: Heinrich Schuchardt @ 2018-11-16 18:05 UTC (permalink / raw)
  To: u-boot

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/52df421e3987c35291bdf8c7c9a46f83ae3d0bae
efi_loader: do not use unsupported printf code

This should solve the problem you are reporting.

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-16 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-16 15:13 [U-Boot] efi_selftest_unicode_collation.c: build warning Bin Meng
2018-11-16 18:05 ` Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.