]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: seccomp: fix format-zero-length warnings
authorAmer Al Shanawany <amer.shanawany@gmail.com>
Tue, 11 Jun 2024 15:16:08 +0000 (17:16 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 11 Jun 2024 15:25:43 +0000 (09:25 -0600)
commit04e1f99afe8bec27ad2d2726897ac8185bf0532c
tree45062f0e95d9f92ecbf01b8e63eba74c4206e620
parent2049aad5d3a6921f80121029afe6fbcfb2727861
selftests: seccomp: fix format-zero-length warnings

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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.Uj5ug8K9-lkp@intel.com/
Suggested-by: Kees Cook <kees@kernel.org>
Signed-off-by: Amer Al Shanawany <amer.shanawany@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/seccomp/seccomp_benchmark.c