summaryrefslogtreecommitdiffstats
path: root/include/ras
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-02-19 21:26:22 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-21 14:16:27 -0300
commit8dd93d450bff251575c56b8f058393124e1f00fb (patch)
treebee1cae0a29936d2897a5d84afdc20e524b1022b /include/ras
parente7e248304c8ccf02b89e04c3b3b66006b993b5a7 (diff)
edac: add support for error type "Info"
The CPER spec defines a forth type of error: informational logs. Add support for it at the edac API and at the trace event interface. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/ras')
-rw-r--r--include/ras/ras_event.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/ras/ras_event.h b/include/ras/ras_event.h
index 260470e7248..21cdb0b7b0f 100644
--- a/include/ras/ras_event.h
+++ b/include/ras/ras_event.h
@@ -78,9 +78,7 @@ TRACE_EVENT(mc_event,
TP_printk("%d %s error%s:%s%s on %s (mc:%d location:%d:%d:%d address:0x%08lx grain:%d syndrome:0x%08lx%s%s)",
__entry->error_count,
- (__entry->error_type == HW_EVENT_ERR_CORRECTED) ? "Corrected" :
- ((__entry->error_type == HW_EVENT_ERR_FATAL) ?
- "Fatal" : "Uncorrected"),
+ mc_event_error_type(__entry->error_type),
__entry->error_count > 1 ? "s" : "",
((char *)__get_str(msg))[0] ? " " : "",
__get_str(msg),