Commit 5a7a4e46 authored by zhang jiao's avatar zhang jiao Committed by Shuah Khan
Browse files

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: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 8694e6a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -427,7 +427,7 @@ static inline __noreturn __printf(1, 2) void ksft_exit_skip(const char *msg, ...
	 */
	if (ksft_plan || ksft_test_num()) {
		ksft_cnt.ksft_xskip++;
		printf("ok %d # SKIP ", 1 + ksft_test_num());
		printf("ok %u # SKIP ", 1 + ksft_test_num());
	} else {
		printf("1..0 # SKIP ");
	}