krishnanadh / rpms / rasdaemon

Forked from rpms/rasdaemon a year ago
Clone

Blame SOURCES/0053-rasdaemon-remove-a-space-from-mcgstatus_msg.patch

71e2cb
From 45b575b791dbd3d5660a0c08065a9fbcb6e21eb9 Mon Sep 17 00:00:00 2001
71e2cb
From: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
71e2cb
Date: Wed, 10 Jun 2015 07:29:03 -0300
71e2cb
Subject: [PATCH 2/5] rasdaemon: remove a space from mcgstatus_msg
71e2cb
71e2cb
"ras-mc-ctl --errors" shows an unnecessary space character in the
71e2cb
mcgstatus string of MCE event, like below:
71e2cb
71e2cb
2 2015-04-04 19:57:22 +0900 error: MC_HA_IMC_RW_BLOCK_ACK_TIMEOUT, mcg mcgstatus= 0, mci Corrected_error, mcgcap=0x07000c16, status=0x8000000067000e0b, walltime=0x555da140, cpu=0x00000001, cpuid=0x000306f3, apicid=0x00000002, bank=0x00000004
71e2cb
71e2cb
Let's remove it.
71e2cb
71e2cb
Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
71e2cb
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
71e2cb
---
71e2cb
 mce-intel.c | 2 +-
71e2cb
 1 file changed, 1 insertion(+), 1 deletion(-)
71e2cb
71e2cb
diff --git a/mce-intel.c b/mce-intel.c
71e2cb
index 3503c6a..77b929b 100644
71e2cb
--- a/mce-intel.c
71e2cb
+++ b/mce-intel.c
71e2cb
@@ -176,7 +176,7 @@ static void decode_mcg(struct mce_event *e)
71e2cb
 {
71e2cb
 	uint64_t mcgstatus = e->mcgstatus;
71e2cb
 
71e2cb
-	mce_snprintf(e->mcgstatus_msg, "mcgstatus= %lld",
71e2cb
+	mce_snprintf(e->mcgstatus_msg, "mcgstatus=%lld",
71e2cb
 		     (long long)e->mcgstatus);
71e2cb
 
71e2cb
 	if (mcgstatus & MCG_STATUS_RIPV)
71e2cb
-- 
71e2cb
1.8.3.1
71e2cb