krishnanadh / rpms / rasdaemon

Forked from rpms/rasdaemon a year ago
Clone

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

ac32bf
From 45b575b791dbd3d5660a0c08065a9fbcb6e21eb9 Mon Sep 17 00:00:00 2001
ac32bf
From: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
ac32bf
Date: Wed, 10 Jun 2015 07:29:03 -0300
ac32bf
Subject: [PATCH 2/5] rasdaemon: remove a space from mcgstatus_msg
ac32bf
ac32bf
"ras-mc-ctl --errors" shows an unnecessary space character in the
ac32bf
mcgstatus string of MCE event, like below:
ac32bf
ac32bf
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
ac32bf
ac32bf
Let's remove it.
ac32bf
ac32bf
Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
ac32bf
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
ac32bf
---
ac32bf
 mce-intel.c | 2 +-
ac32bf
 1 file changed, 1 insertion(+), 1 deletion(-)
ac32bf
ac32bf
diff --git a/mce-intel.c b/mce-intel.c
ac32bf
index 3503c6a..77b929b 100644
ac32bf
--- a/mce-intel.c
ac32bf
+++ b/mce-intel.c
ac32bf
@@ -176,7 +176,7 @@ static void decode_mcg(struct mce_event *e)
ac32bf
 {
ac32bf
 	uint64_t mcgstatus = e->mcgstatus;
ac32bf
 
ac32bf
-	mce_snprintf(e->mcgstatus_msg, "mcgstatus= %lld",
ac32bf
+	mce_snprintf(e->mcgstatus_msg, "mcgstatus=%lld",
ac32bf
 		     (long long)e->mcgstatus);
ac32bf
 
ac32bf
 	if (mcgstatus & MCG_STATUS_RIPV)
ac32bf
-- 
ac32bf
1.8.3.1
ac32bf