From: Seiichi Ikarashi Date: Tue, 26 May 2015 14:59:36 +0000 (-0300) Subject: rasdaemon: properly pring message strings in decode_bitfield() X-Git-Tag: v0.5.5~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5dd11c60b84294a3c6ce5ccb0db726b3dce35b10;p=users%2Fmchehab%2Frasdaemon.git rasdaemon: properly pring message strings in decode_bitfield() Fix decode_bitfield() so that it does print message strings from the struct field table. Signed-off-by: Seiichi Ikarashi Signed-off-by: Aristeu Rozanski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/bitfield.c b/bitfield.c index 1dda30d..d6931c9 100644 --- a/bitfield.c +++ b/bitfield.c @@ -84,7 +84,8 @@ void decode_bitfield(struct mce_event *e, uint64_t status, continue; mce_snprintf(e->error_msg, "<%u:%llx>", f->start_bit, (long long)v); - } + } else + mce_snprintf(e->error_msg, "%s", s); } }