Blame SOURCES/0047-rasdaemon-properly-pring-message-strings-in-decode_b.patch
|
|
a0ebc9 |
From 5dd11c60b84294a3c6ce5ccb0db726b3dce35b10 Mon Sep 17 00:00:00 2001
|
|
|
a0ebc9 |
From: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
|
|
|
a0ebc9 |
Date: Tue, 26 May 2015 11:59:36 -0300
|
|
|
a0ebc9 |
Subject: [PATCH 07/13] rasdaemon: properly pring message strings in
|
|
|
a0ebc9 |
decode_bitfield()
|
|
|
a0ebc9 |
|
|
|
a0ebc9 |
Fix decode_bitfield() so that it does print message strings from the struct
|
|
|
a0ebc9 |
field table.
|
|
|
a0ebc9 |
|
|
|
a0ebc9 |
Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
|
|
|
a0ebc9 |
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
|
|
|
a0ebc9 |
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
|
|
a0ebc9 |
---
|
|
|
a0ebc9 |
bitfield.c | 3 ++-
|
|
|
a0ebc9 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
a0ebc9 |
|
|
|
a0ebc9 |
diff --git a/bitfield.c b/bitfield.c
|
|
|
a0ebc9 |
index 1dda30d..d6931c9 100644
|
|
|
a0ebc9 |
--- a/bitfield.c
|
|
|
a0ebc9 |
+++ b/bitfield.c
|
|
|
a0ebc9 |
@@ -84,7 +84,8 @@ void decode_bitfield(struct mce_event *e, uint64_t status,
|
|
|
a0ebc9 |
continue;
|
|
|
a0ebc9 |
mce_snprintf(e->error_msg, "<%u:%llx>",
|
|
|
a0ebc9 |
f->start_bit, (long long)v);
|
|
|
a0ebc9 |
- }
|
|
|
a0ebc9 |
+ } else
|
|
|
a0ebc9 |
+ mce_snprintf(e->error_msg, "%s", s);
|
|
|
a0ebc9 |
}
|
|
|
a0ebc9 |
}
|
|
|
a0ebc9 |
|
|
|
a0ebc9 |
--
|
|
|
a0ebc9 |
1.8.3.1
|
|
|
a0ebc9 |
|