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

Message ID 161814861328.29796.17076373525240508511.tip-bot2@tip-bot2
State Accepted
Commit 4ac9de07b24f93a87ad38c497ad00fe2451203e7
Headers show
Series
  • [tip:,core/rcu] torture: Replace torture_init_begin string with %s
Related show

Commit Message

tip-bot2 for Thomas Gleixner April 11, 2021, 1:43 p.m. UTC
The following commit has been merged into the core/rcu branch of tip:

Commit-ID:     4ac9de07b24f93a87ad38c497ad00fe2451203e7
Gitweb:        https://git.kernel.org/tip/4ac9de07b24f93a87ad38c497ad00fe2451203e7
Author:        Stephen Zhang <stephenzhangzsd@gmail.com>
AuthorDate:    Sat, 23 Jan 2021 16:34:01 +08:00
Committer:     Paul E. McKenney <paulmck@kernel.org>
CommitterDate: Mon, 08 Mar 2021 14:22:28 -08:00

torture: Replace torture_init_begin string with %s

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(-)

Patch
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)
 {
 	mutex_lock(&fullstop_mutex);
 	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__);
 		mutex_unlock(&fullstop_mutex);
 		return false;
 	}