mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] torture: replace the function name with %s
@ 2021-01-23  8:34 Stephen Zhang
  0 siblings, 0 replies; only message in thread
From: Stephen Zhang @ 2021-01-23  8:34 UTC (permalink / raw)
  To: dave, paulmck, josh; +Cc: linux-kernel, Stephen Zhang

Better to replace the function name with %s.

Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com>
---
 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;
 	}
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-23  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23  8:34 [PATCH] torture: replace the function name with %s Stephen Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®