Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466938 > unrolled thread

[PATCH 3/3] torture: TOROUT_STRING(): Insert a space between flag and message

Started bySeongJae Park <sj38.park@gmail.com>
First post2016-08-21 10:00 +0200
Last post2016-08-21 10:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] torture: TOROUT_STRING(): Insert a space between flag and message SeongJae Park <sj38.park@gmail.com> - 2016-08-21 10:00 +0200

#1466938 — [PATCH 3/3] torture: TOROUT_STRING(): Insert a space between flag and message

FromSeongJae Park <sj38.park@gmail.com>
Date2016-08-21 10:00 +0200
Subject[PATCH 3/3] torture: TOROUT_STRING(): Insert a space between flag and message
Message-ID<s8vPI-5WQ-17@gated-at.bofh.it>
TOROUT_STRING() macro function does not insert a space between flag and
message while other similar couterparts do.  The output will be
inconsistent and weird especially when it is read by dmesg with color
option enabled.  This commit adds an space between flag and message in
TOROUT_STRING() output.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 include/linux/torture.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/torture.h b/include/linux/torture.h
index 6685a73..a45702e 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) \
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web