Re: [PATCH] selftests/bpf: Fix test_progs compilation failure in 32-bit arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to bpf/bpf.git (master)
by Martin KaFai Lau <martin.lau@xxxxxxxxxx>:

On Tue, 8 Nov 2022 09:58:57 +0800 you wrote:
> test_progs fails to be compiled in the 32-bit arch, log is as follows:
> 
>   test_progs.c:1013:52: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
>    1013 |                 sprintf(buf, "MSG_TEST_LOG (cnt: %ld, last: %d)",
>         |                                                  ~~^
>         |                                                    |
>         |                                                    long int
>         |                                                  %d
>    1014 |                         strlen(msg->test_log.log_buf),
>         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         |                         |
>         |                         size_t {aka unsigned int}
> 
> [...]

Here is the summary with links:
  - selftests/bpf: Fix test_progs compilation failure in 32-bit arch
    https://git.kernel.org/bpf/bpf/c/5704bc7e8991

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux