diff options
author | Mark Brown <broonie@kernel.org> | 2024-04-09 23:24:51 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-05-06 13:57:20 -0600 |
commit | 7b8674cae80f68304ec6628e455c169a7dc2ad0d (patch) | |
tree | 91037e621d2a738b19c707afabd4cc2286607e1a /tools | |
parent | c1b121eafd9b94079300bc1f21a5bf82e72a99b4 (diff) | |
download | net-7b8674cae80f68304ec6628e455c169a7dc2ad0d.tar.gz |
selftests/clone3: Fix compiler warning
Shuah reported a compiler warning with an Ubuntu GCC 13 build, I've been
unable to reproduce it but hopefully this fixes the issue:
clone3_set_tid.c:136:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
Reported-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/clone3/clone3_set_tid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/clone3/clone3_set_tid.c b/tools/testing/selftests/clone3/clone3_set_tid.c index 9ae38733cb6ee0..fbf813a5a06fd4 100644 --- a/tools/testing/selftests/clone3/clone3_set_tid.c +++ b/tools/testing/selftests/clone3/clone3_set_tid.c @@ -133,7 +133,7 @@ static void test_clone3_set_tid(const char *desc, "[%d] clone3() with CLONE_SET_TID %d says: %d - expected %d\n", getpid(), set_tid[0], ret, expected); - ksft_test_result(ret == expected, "%s with %d TIDs and flags 0x%x\n", + ksft_test_result(ret == expected, "%s with %zu TIDs and flags 0x%x\n", desc, set_tid_size, flags); } |