aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-06-04 12:40:05 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-12 11:15:49 -0400
commitc10538396bf3f0076630103ede49c863c27db720 (patch)
tree5b8cc03638af4c14784fd09836d29348c5e3ee60 /drivers
parent00d18339276d35bc6b7ae6ae1a64ebf2242b89f6 (diff)
sb_edac: properly handle error count
Instead of reporting the error count via driver-specific details, use the new way provided by edac_mc_handle_error. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/edac/sb_edac.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index 2809b07cbb01..6f8861369e7d 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -1432,8 +1432,7 @@ static void sbridge_mce_output_error(struct mem_ctl_info *mci,
1432 * to the group of dimm's where the error may be happening. 1432 * to the group of dimm's where the error may be happening.
1433 */ 1433 */
1434 snprintf(msg, sizeof(msg), 1434 snprintf(msg, sizeof(msg),
1435 "count:%d%s%s area:%s err_code:%04x:%04x socket:%d channel_mask:%ld rank:%d", 1435 "%s%s area:%s err_code:%04x:%04x socket:%d channel_mask:%ld rank:%d",
1436 core_err_cnt,
1437 overflow ? " OVERFLOW" : "", 1436 overflow ? " OVERFLOW" : "",
1438 (uncorrected_error && recoverable) ? " recoverable" : "", 1437 (uncorrected_error && recoverable) ? " recoverable" : "",
1439 area_type, 1438 area_type,
@@ -1447,13 +1446,13 @@ static void sbridge_mce_output_error(struct mem_ctl_info *mci,
1447 /* FIXME: need support for channel mask */ 1446 /* FIXME: need support for channel mask */
1448 1447
1449 /* Call the helper to output message */ 1448 /* Call the helper to output message */
1450 edac_mc_handle_error(tp_event, mci, 1, 1449 edac_mc_handle_error(tp_event, mci, core_err_cnt,
1451 m->addr >> PAGE_SHIFT, m->addr & ~PAGE_MASK, 0, 1450 m->addr >> PAGE_SHIFT, m->addr & ~PAGE_MASK, 0,
1452 channel, dimm, -1, 1451 channel, dimm, -1,
1453 optype, msg); 1452 optype, msg);
1454 return; 1453 return;
1455err_parsing: 1454err_parsing:
1456 edac_mc_handle_error(tp_event, mci, 1, 0, 0, 0, 1455 edac_mc_handle_error(tp_event, mci, core_err_cnt, 0, 0, 0,
1457 -1, -1, -1, 1456 -1, -1, -1,
1458 msg, ""); 1457 msg, "");
1459 1458