Skip to content

Commit 5a7a4e4

Browse files
zhang jiaoshuahkh
authored andcommitted
selftests: kselftest: Fix the wrong format specifier
The format specifier of "unsigned int" in printf() should be "%u", not "%d". Link: https://lore.kernel.org/r/[email protected] Signed-off-by: zhang jiao <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 8694e6a commit 5a7a4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kselftest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static inline __noreturn __printf(1, 2) void ksft_exit_skip(const char *msg, ...
427427
*/
428428
if (ksft_plan || ksft_test_num()) {
429429
ksft_cnt.ksft_xskip++;
430-
printf("ok %d # SKIP ", 1 + ksft_test_num());
430+
printf("ok %u # SKIP ", 1 + ksft_test_num());
431431
} else {
432432
printf("1..0 # SKIP ");
433433
}

0 commit comments

Comments
 (0)