[tip/core/rcu,1/2] torture: Replace torture_init_begin string with %s
diff mbox series

Message ID 20210304003513.24488-1-paulmck@kernel.org
State In Next
Commit 92131414531776fb9b4b0ffc5c9338c593dd4d10
Headers show
  • Torture-test updates for v5.13
Related show

Commit Message

Paul E. McKenney March 4, 2021, 12:35 a.m. UTC
From: Stephen Zhang <stephenzhangzsd@gmail.com>

This commit replaces a hard-coded "torture_init_begin" string in
a pr_alert() format with "%s" and __func__.

Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
 kernel/torture.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff mbox series

diff --git a/kernel/torture.c b/kernel/torture.c
index 01e336f..0a315c3 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -816,9 +816,9 @@  bool torture_init_begin(char *ttype, int v)
 	if (torture_type != NULL) {
-		pr_alert("torture_init_begin: Refusing %s init: %s running.\n",
-			 ttype, torture_type);
-		pr_alert("torture_init_begin: One torture test at a time!\n");
+		pr_alert("%s: Refusing %s init: %s running.\n",
+			  __func__, ttype, torture_type);
+		pr_alert("%s: One torture test at a time!\n", __func__);
 		return false;