Message ID | 20231006175744.3136675-3-andrii@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0af3aace5b91b0e46b33f4e5eb137bea5730fa76 |
Delegated to: | BPF |
Headers | show |
Series | [v2,bpf-next,1/3] selftests/bpf: fix compiler warnings reported in -O2 mode | expand |
diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c index 4d582cac2c09..1b9387890148 100644 --- a/tools/testing/selftests/bpf/test_progs.c +++ b/tools/testing/selftests/bpf/test_progs.c @@ -255,7 +255,7 @@ static void print_subtest_name(int test_num, int subtest_num, const char *test_name, char *subtest_name, char *result) { - char test_num_str[TEST_NUM_WIDTH + 1]; + char test_num_str[32]; snprintf(test_num_str, sizeof(test_num_str), "%d/%d", test_num, subtest_num);