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