Commit f71f22b6 authored by Li Zhijian's avatar Li Zhijian Committed by Paul E. McKenney

refscale: Add missing '\n' to flush message

Add '\n' to macros to flush message for each call.
Acked-by: default avatarDavidlohr Bueso <dbueso@suse.de>
Signed-off-by: default avatarLi Zhijian <zhijianx.li@intel.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 4feeb9d5
...@@ -44,7 +44,10 @@ ...@@ -44,7 +44,10 @@
pr_alert("%s" SCALE_FLAG s, scale_type, ## x) pr_alert("%s" SCALE_FLAG s, scale_type, ## x)
#define VERBOSE_SCALEOUT(s, x...) \ #define VERBOSE_SCALEOUT(s, x...) \
do { if (verbose) pr_alert("%s" SCALE_FLAG s, scale_type, ## x); } while (0) do { \
if (verbose) \
pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \
} while (0)
static atomic_t verbose_batch_ctr; static atomic_t verbose_batch_ctr;
...@@ -54,11 +57,11 @@ do { \ ...@@ -54,11 +57,11 @@ do { \
(verbose_batched <= 0 || \ (verbose_batched <= 0 || \
!(atomic_inc_return(&verbose_batch_ctr) % verbose_batched))) { \ !(atomic_inc_return(&verbose_batch_ctr) % verbose_batched))) { \
schedule_timeout_uninterruptible(1); \ schedule_timeout_uninterruptible(1); \
pr_alert("%s" SCALE_FLAG s, scale_type, ## x); \ pr_alert("%s" SCALE_FLAG s "\n", scale_type, ## x); \
} \ } \
} while (0) } while (0)
#define SCALEOUT_ERRSTRING(s, x...) pr_alert("%s" SCALE_FLAG "!!! " s, scale_type, ## x) #define SCALEOUT_ERRSTRING(s, x...) pr_alert("%s" SCALE_FLAG "!!! " s "\n", scale_type, ## x)
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Joel Fernandes (Google) <joel@joelfernandes.org>"); MODULE_AUTHOR("Joel Fernandes (Google) <joel@joelfernandes.org>");
...@@ -841,7 +844,7 @@ ref_scale_init(void) ...@@ -841,7 +844,7 @@ ref_scale_init(void)
goto unwind; goto unwind;
} }
VERBOSE_SCALEOUT("Starting %d reader threads\n", nreaders); VERBOSE_SCALEOUT("Starting %d reader threads", nreaders);
for (i = 0; i < nreaders; i++) { for (i = 0; i < nreaders; i++) {
firsterr = torture_create_kthread(ref_scale_reader, (void *)i, firsterr = torture_create_kthread(ref_scale_reader, (void *)i,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment