mirror of https://gitee.com/openkylin/linux.git
powerpc/rtasd: Improve unknown error logging
Currently when we get an unknown RTAS event it prints the type as "Unknown" and no other useful information. Add the raw type code to the log message so that we have something to work off. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
aea447141c
commit
b27e5f939b
|
@ -150,8 +150,10 @@ static void printk_log_rtas(char *buf, int len)
|
|||
} else {
|
||||
struct rtas_error_log *errlog = (struct rtas_error_log *)buf;
|
||||
|
||||
printk(RTAS_DEBUG "event: %d, Type: %s, Severity: %d\n",
|
||||
error_log_cnt, rtas_event_type(rtas_error_type(errlog)),
|
||||
printk(RTAS_DEBUG "event: %d, Type: %s (%d), Severity: %d\n",
|
||||
error_log_cnt,
|
||||
rtas_event_type(rtas_error_type(errlog)),
|
||||
rtas_error_type(errlog),
|
||||
rtas_error_severity(errlog));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue