aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2011-08-04 13:25:24 -0400
committerBorislav Petkov <borislav.petkov@amd.com>2011-10-06 06:34:02 -0400
commitbff7b812465a797bc563e9938fa11316fcd2ac0d (patch)
treed4759b41322da63eacc158fb84c5cb03914b22e8 /drivers
parent976d167615b64e14bc1491ca51d424e2ba9a5e84 (diff)
EDAC, MCE, AMD: Print CPU number when reporting the error
Currently, correctable ECCs go through mcelog and do not print the scary MCE banner. In that case, however, reporting the core where the CECC happened is important information so dump it along with the decoded string albeit at risk of having a minor redundancy. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/edac/mce_amd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 795cfbc0bf50..5bfe6997d9ff 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -769,8 +769,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
769 if (amd_filter_mce(m)) 769 if (amd_filter_mce(m))
770 return NOTIFY_STOP; 770 return NOTIFY_STOP;
771 771
772 pr_emerg(HW_ERR "MC%d_STATUS[%s|%s|%s|%s|%s", 772 pr_emerg(HW_ERR "CPU:%d MC%d_STATUS[%s|%s|%s|%s|%s",
773 m->bank, 773 m->extcpu, m->bank,
774 ((m->status & MCI_STATUS_OVER) ? "Over" : "-"), 774 ((m->status & MCI_STATUS_OVER) ? "Over" : "-"),
775 ((m->status & MCI_STATUS_UC) ? "UE" : "CE"), 775 ((m->status & MCI_STATUS_UC) ? "UE" : "CE"),
776 ((m->status & MCI_STATUS_MISCV) ? "MiscV" : "-"), 776 ((m->status & MCI_STATUS_MISCV) ? "MiscV" : "-"),