]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
powerpc/rtasd: Improve unknown error logging
authorOliver O'Halloran <oohall@gmail.com>
Wed, 10 Oct 2018 05:23:02 +0000 (16:23 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
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>
arch/powerpc/kernel/rtasd.c

index 23b88b923f06d319b4727e80ad496e698993b906..c1378661b12fc67a4b88351624955f561f674330 100644 (file)
@@ -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));
        }
 }