summaryrefslogtreecommitdiffstats
path: root/include/linux/torture.h
diff options
context:
space:
mode:
authorSeongJae Park2016-08-21 09:54:40 +0200
committerPaul E. McKenney2016-08-22 19:10:12 +0200
commit489bb3d252d41392ce52590e49f0ae8782fb016e (patch)
tree02263ce38f105ba0ec79ab8589c7f43782f58cc7 /include/linux/torture.h
parentrcuperf: Consistently insert space between flag and message (diff)
downloadkernel-qcow2-linux-489bb3d252d41392ce52590e49f0ae8782fb016e.tar.gz
kernel-qcow2-linux-489bb3d252d41392ce52590e49f0ae8782fb016e.tar.xz
kernel-qcow2-linux-489bb3d252d41392ce52590e49f0ae8782fb016e.zip
torture: TOROUT_STRING(): Insert a space between flag and message
The TOROUT_STRING() macro does not insert a space between the flag and the message. In contrast, other similar torture-test dmesg messages consistently supply a single space character. This difference makes the output hard to read and to mechanically parse. This commit therefore adds a space character between flag and message in TOROUT_STRING() output. Signed-off-by: SeongJae Park <sj38.park@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/torture.h')
-rw-r--r--include/linux/torture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h
index 6685a73736a2..a45702eb3e7b 100644
--- a/include/linux/torture.h
+++ b/include/linux/torture.h
@@ -43,7 +43,7 @@
#define TORTURE_FLAG "-torture:"
#define TOROUT_STRING(s) \
- pr_alert("%s" TORTURE_FLAG s "\n", torture_type)
+ pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s)
#define VERBOSE_TOROUT_STRING(s) \
do { if (verbose) pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s); } while (0)
#define VERBOSE_TOROUT_ERRSTRING(s) \