Re: [PATCH v3] selftests: seccomp: fix format-zero-length warnings

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

 



On Tue, Jun 11, 2024 at 05:16:08PM +0200, Amer Al Shanawany wrote:
> fix the following errors by using string format specifier and an empty
> parameter:
> 
> seccomp_benchmark.c:197:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   197 |         ksft_print_msg("");
>       |                        ^~
> seccomp_benchmark.c:202:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   202 |         ksft_print_msg("");
>       |                        ^~
> seccomp_benchmark.c:204:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   204 |         ksft_print_msg("");
>       |                        ^~
> 
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.Uj5ug8K9-lkp@xxxxxxxxx/
> Suggested-by: Kees Cook <kees@xxxxxxxxxx>
> Signed-off-by: Amer Al Shanawany <amer.shanawany@xxxxxxxxx>

Thanks!

Reviewed-by: Kees Cook <kees@xxxxxxxxxx>

-- 
Kees Cook




[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