Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

zhang jiao and committed by
Shuah Khan
5a7a4e46 8694e6a7

+1 -1
+1 -1
tools/testing/selftests/kselftest.h
··· 427 427 */ 428 428 if (ksft_plan || ksft_test_num()) { 429 429 ksft_cnt.ksft_xskip++; 430 - printf("ok %d # SKIP ", 1 + ksft_test_num()); 430 + printf("ok %u # SKIP ", 1 + ksft_test_num()); 431 431 } else { 432 432 printf("1..0 # SKIP "); 433 433 }