]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: timers: clocksource-switch: Adapt progress to kselftest framework
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Dec 2024 09:02:56 +0000 (10:02 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 15 Jan 2025 00:06:31 +0000 (17:06 -0700)
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>
tools/testing/selftests/timers/clocksource-switch.c

index c5264594064c8516e2186f9f21a087456e9bc9ae..83faa4e354e389c27c65c988b74776320151911c 100644 (file)
@@ -156,8 +156,8 @@ int main(int argc, char **argv)
        /* Check everything is sane before we start switching asynchronously */
        if (do_sanity_check) {
                for (i = 0; i < count; i++) {
-                       printf("Validating clocksource %s\n",
-                               clocksource_list[i]);
+                       ksft_print_msg("Validating clocksource %s\n",
+                                       clocksource_list[i]);
                        if (change_clocksource(clocksource_list[i])) {
                                status = -1;
                                goto out;
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
                }
        }
 
-       printf("Running Asynchronous Switching Tests...\n");
+       ksft_print_msg("Running Asynchronous Switching Tests...\n");
        pid = fork();
        if (!pid)
                return run_tests(runtime);