Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

SeongJae Park and committed by
Paul E. McKenney
489bb3d2 a56fefa2

+1 -1
+1 -1
include/linux/torture.h
··· 43 43 44 44 #define TORTURE_FLAG "-torture:" 45 45 #define TOROUT_STRING(s) \ 46 - pr_alert("%s" TORTURE_FLAG s "\n", torture_type) 46 + pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s) 47 47 #define VERBOSE_TOROUT_STRING(s) \ 48 48 do { if (verbose) pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s); } while (0) 49 49 #define VERBOSE_TOROUT_ERRSTRING(s) \