From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbcHUHzB (ORCPT ); Sun, 21 Aug 2016 03:55:01 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36759 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165AbcHUHyw (ORCPT ); Sun, 21 Aug 2016 03:54:52 -0400 From: SeongJae Park To: paulmck@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 3/3] torture: TOROUT_STRING(): Insert a space between flag and message Date: Sun, 21 Aug 2016 16:54:40 +0900 Message-Id: <1471766080-17501-3-git-send-email-sj38.park@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471766080-17501-1-git-send-email-sj38.park@gmail.com> References: <1471766080-17501-1-git-send-email-sj38.park@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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