summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-08-13 13:49:38 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-08-13 16:45:41 -0700
commit9028bbcc3e12510cac13a9554f1a1e39667a4387 (patch)
treec45138d4f18ade4245fb7ae7578f1d7b9533a0e3 /tools/testing/selftests/bpf/prog_tests/skb_ctx.c
parent09f44b753a7d120becc80213c3459183c8acd26b (diff)
downloadlinux-9028bbcc3e12510cac13a9554f1a1e39667a4387.tar.bz2
selftest/bpf: Fix compilation warnings in 32-bit mode
Fix compilation warnings emitted when compiling selftests for 32-bit platform (x86 in my case). Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200813204945.1020225-3-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_ctx.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/skb_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
index 25de86af2d03..fafeddaad6a9 100644
--- a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
+++ b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c
@@ -81,7 +81,7 @@ void test_skb_ctx(void)
CHECK_ATTR(tattr.ctx_size_out != sizeof(skb),
"ctx_size_out",
- "incorrect output size, want %lu have %u\n",
+ "incorrect output size, want %zu have %u\n",
sizeof(skb), tattr.ctx_size_out);
for (i = 0; i < 5; i++)