diff options
author | 2024-12-02 12:31:11 +0800 | |
---|---|---|
committer | 2025-01-14 17:06:31 -0700 | |
commit | 5a7a4e46f85ebc87853b4edc4436008d2372c3c3 (patch) | |
tree | 0cfd6cc05317efca6f26bdf9d1e1023266c2ff7b | |
parent | selftests: timers: clocksource-switch: Adapt progress to kselftest framework (diff) | |
download | wireguard-linux-5a7a4e46f85ebc87853b4edc4436008d2372c3c3.tar.xz wireguard-linux-5a7a4e46f85ebc87853b4edc4436008d2372c3c3.zip |
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>
-rw-r--r-- | tools/testing/selftests/kselftest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index 5263961db51f..cdf91b0ca40f 100644 --- a/tools/testing/selftests/kselftest.h +++ b/tools/testing/selftests/kselftest.h @@ -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 "); } |