Message ID | 1455126102-28997-2-git-send-email-al.stone@linaro.org |
---|---|
State | New |
Headers | show |
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); } }
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