[tip: core/rcu] torture: Replace torture_init_begin string with %s
From: tip-bot2 for Stephen Zhang
Date: Sun Apr 11 2021 - 09:46:04 EST
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@xxxxxxxxx>
AuthorDate: Sat, 23 Jan 2021 16:34:01 +08:00
Committer: Paul E. McKenney <paulmck@xxxxxxxxxx>
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@xxxxxxxxx>
Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx>
---
kernel/torture.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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;
}