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: timers: clocksource-switch: Adapt progress to kselftest framework

When adapting the test to the kselftest framework, a few printf() calls
indicating test progress were not updated.

Fix this by replacing these printf() calls by ksft_print_msg() calls.

Link: https://lore.kernel.org/r/7dd4b9ab6e43268846e250878ebf25ae6d3d01ce.1733994134.git.geert+renesas@glider.be
Fixes: ce7d101750ff ("selftests: timers: clocksource-switch: adapt to kselftest framework")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Geert Uytterhoeven and committed by
Shuah Khan
8694e6a7 d54d3f69

+3 -3
+3 -3
tools/testing/selftests/timers/clocksource-switch.c
··· 156 156 /* Check everything is sane before we start switching asynchronously */ 157 157 if (do_sanity_check) { 158 158 for (i = 0; i < count; i++) { 159 - printf("Validating clocksource %s\n", 160 - clocksource_list[i]); 159 + ksft_print_msg("Validating clocksource %s\n", 160 + clocksource_list[i]); 161 161 if (change_clocksource(clocksource_list[i])) { 162 162 status = -1; 163 163 goto out; ··· 169 169 } 170 170 } 171 171 172 - printf("Running Asynchronous Switching Tests...\n"); 172 + ksft_print_msg("Running Asynchronous Switching Tests...\n"); 173 173 pid = fork(); 174 174 if (!pid) 175 175 return run_tests(runtime);