mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]>
This commit is contained in:
parent
e7e248304c
commit
8dd93d450b
2 changed files with 17 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue