Skip to content

Commit 8694e6a

Browse files
geertushuahkh
authored andcommitted
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: ce7d101 ("selftests: timers: clocksource-switch: adapt to kselftest framework") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent d54d3f6 commit 8694e6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/timers/clocksource-switch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ int main(int argc, char **argv)
156156
/* Check everything is sane before we start switching asynchronously */
157157
if (do_sanity_check) {
158158
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]);
161161
if (change_clocksource(clocksource_list[i])) {
162162
status = -1;
163163
goto out;
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
169169
}
170170
}
171171

172-
printf("Running Asynchronous Switching Tests...\n");
172+
ksft_print_msg("Running Asynchronous Switching Tests...\n");
173173
pid = fork();
174174
if (!pid)
175175
return run_tests(runtime);

0 commit comments

Comments
 (0)