diff options
author | Helge Deller <deller@gmx.de> | 2016-10-11 21:49:42 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-10-11 21:52:47 +0300 |
commit | 0a862485f42af7df530b0b5f0e5ba8ffbb3a4a12 (patch) | |
tree | 15623a89fecbbfbedcc6854ee148ee8ff2efe171 /arch/parisc/kernel/traps.c | |
parent | e3b6a02816ebbda3acfde2f079446ba92c97e70b (diff) | |
download | linux-0a862485f42af7df530b0b5f0e5ba8ffbb3a4a12.tar.xz |
parisc: Show trap name in kernel crash
Show the real trap name when the kernel crashes.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel/traps.c')
-rw-r--r-- | arch/parisc/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c index 97d6b208e129..378df9207406 100644 --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c @@ -458,8 +458,8 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o } printk("\n"); - printk(KERN_CRIT "%s: Code=%d regs=%p (Addr=" RFMT ")\n", - msg, code, regs, offset); + pr_crit("%s: Code=%d (%s) regs=%p (Addr=" RFMT ")\n", + msg, code, trap_name(code), regs, offset); show_regs(regs); spin_unlock(&terminate_lock); |