diff mbox

[1/3] rasdaemon: correct a printf that was missing a field to print to

Message ID 1455126102-28997-2-git-send-email-al.stone@linaro.org
State New
Headers show

Commit Message

Al Stone Feb. 10, 2016, 5:41 p.m. UTC
Minor correction to a printf to add a field for a string being
printed out.

Signed-off-by: Al Stone <al.stone@linaro.org>

---
 mce-intel-p4-p6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.5.0
diff mbox

Patch

diff --git a/mce-intel-p4-p6.c b/mce-intel-p4-p6.c
index c8e219d..4615e1a 100644
--- a/mce-intel-p4-p6.c
+++ b/mce-intel-p4-p6.c
@@ -127,7 +127,7 @@  void p4_decode_model(struct mce_event *e)
 
 	for (i = 0; i < ARRAY_SIZE(p4_model); i++) {
 		if (model & (1 << p4_model[i].value))
-			mce_snprintf(e->error_msg, p4_model[i].str);
+			mce_snprintf(e->error_msg, "%s", p4_model[i].str);
 	}
 }