[PATCH 3/3] Task: Kselftests: LKMP Bug Fixing Spring 2024

From: Abhinav Jain
Date: Sat Feb 03 2024 - 11:58:38 EST


Changed zero length string to a blank to fix the zero-length
gnu-printf format string warnings

Signed-off-by: Abhinav Jain <jain.abhinav177@xxxxxxxxx>
---
tools/testing/selftests/seccomp/seccomp_benchmark.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark.c
index 97b86980b768..bbd20280e7e2 100644
--- a/tools/testing/selftests/seccomp/seccomp_benchmark.c
+++ b/tools/testing/selftests/seccomp/seccomp_benchmark.c
@@ -162,14 +162,14 @@ int main(int argc, char *argv[])
ksft_set_plan(7);

ksft_print_msg("Running on:\n");
- ksft_print_msg("");
+ ksft_print_msg(" ");
system("uname -a");

ksft_print_msg("Current BPF sysctl settings:\n");
/* Avoid using "sysctl" which may not be installed. */
- ksft_print_msg("");
+ ksft_print_msg(" ");
system("grep -H . /proc/sys/net/core/bpf_jit_enable");
- ksft_print_msg("");
+ ksft_print_msg(" ");
system("grep -H . /proc/sys/net/core/bpf_jit_harden");

if (argc > 1)
--
2.25.1