[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210226094426.49016-1-vulab@iscas.ac.cn>
Date: Fri, 26 Feb 2021 09:44:26 +0000
From: Xu Wang <vulab@...as.ac.cn>
To: rostedt@...dmis.org, mingo@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] tracing: Use WARN(1,...)
Use WARN(1,...) rather than printk followed by WARN_ON(1).
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 526fd5ac2ba8..a556b8c00a9f 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1957,7 +1957,7 @@ static int run_tracer_selftest(struct tracer *type)
tr->current_trace = saved_tracer;
if (ret) {
/* Add the warning after printing 'FAILED' */
- WARN(1, KERN_CONT "FAILED!\n");
+ WARN(1, "FAILED!\n");
return -1;
}
/* Only reset on passing, to avoid touching corrupted buffers */
--
2.17.1
Powered by blists - more mailing lists