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/20241202043111.3888-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 8694e6a commit 5a7a4e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)