diff options
author | Stephen Zhang <stephenzhangzsd@gmail.com> | 2021-01-23 09:34:01 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-03-08 23:22:28 +0100 |
commit | 4ac9de07b24f93a87ad38c497ad00fe2451203e7 (patch) | |
tree | c09de03a223936521edb879f600abf9962021bd0 /kernel/torture.c | |
parent | Linux 5.12-rc2 (diff) | |
download | linux-4ac9de07b24f93a87ad38c497ad00fe2451203e7.tar.xz linux-4ac9de07b24f93a87ad38c497ad00fe2451203e7.zip |
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>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r-- | kernel/torture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index 01e336f1e5b2..0a315c387bed 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; } |