Skip to content

Commit 7b8674c

Browse files
broonieshuahkh
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent c1b121e commit 7b8674c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/clone3/clone3_set_tid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void test_clone3_set_tid(const char *desc,
133133
"[%d] clone3() with CLONE_SET_TID %d says: %d - expected %d\n",
134134
getpid(), set_tid[0], ret, expected);
135135

136-
ksft_test_result(ret == expected, "%s with %d TIDs and flags 0x%x\n",
136+
ksft_test_result(ret == expected, "%s with %zu TIDs and flags 0x%x\n",
137137
desc, set_tid_size, flags);
138138
}
139139

0 commit comments

Comments
 (0)