Skip to content

Commit

Permalink
scftorture: Add missing '\n' to flush message
Browse files Browse the repository at this point in the history
Add '\n' to macros to flush message for each call.

Acked-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Li Zhijian <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
zhijianli88 authored and paulmckrcu committed Dec 8, 2021
1 parent f71f22b commit 71f6ea2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/scftorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
pr_alert(SCFTORT_FLAG s, ## x)

#define VERBOSE_SCFTORTOUT(s, x...) \
do { if (verbose) pr_alert(SCFTORT_FLAG s, ## x); } while (0)
do { if (verbose) pr_alert(SCFTORT_FLAG s "\n", ## x); } while (0)

#define VERBOSE_SCFTORTOUT_ERRSTRING(s, x...) \
do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s, ## x); } while (0)
do { if (verbose) pr_alert(SCFTORT_FLAG "!!! " s "\n", ## x); } while (0)

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Paul E. McKenney <[email protected]>");
Expand Down Expand Up @@ -630,7 +630,7 @@ static int __init scf_torture_init(void)
goto unwind;
}

VERBOSE_SCFTORTOUT("Starting %d smp_call_function() threads\n", nthreads);
VERBOSE_SCFTORTOUT("Starting %d smp_call_function() threads", nthreads);

atomic_set(&n_started, nthreads);
for (i = 0; i < nthreads; i++) {
Expand Down

0 comments on commit 71f6ea2

Please sign in to comment.