[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210726135635.143285-1-wangborong@cdjrlc.com>
Date: Mon, 26 Jul 2021 21:56:35 +0800
From: Jason Wang <wangborong@...rlc.com>
To: rostedt@...dmis.org
Cc: mingo@...hat.com, linux-kernel@...r.kernel.org,
Jason Wang <wangborong@...rlc.com>
Subject: [PATCH] tracing: use WARN_ONCE
printk + WARN_ON_ONCE can be just WARN_ONCE.
Signed-off-by: Jason Wang <wangborong@...rlc.com>
---
kernel/trace/trace_output.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index a0bf446bb034..c06726b6d8b4 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -1574,9 +1574,8 @@ __init static int init_events(void)
ret = register_trace_event(event);
if (!ret) {
- printk(KERN_WARNING "event %d failed to register\n",
- event->type);
- WARN_ON_ONCE(1);
+ WARN_ONCE(1, "event %d failed to register\n",
+ event->type);
}
}
--
2.32.0
Powered by blists - more mailing lists