From: David S. Miller Date: Thu, 29 Jun 2006 22:48:59 +0000 (-0700) Subject: [SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses. X-Git-Tag: v2.6.18-rc1~323 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=675f740e557bc752cdcdb0739d80666b488abb58;p=linux-2.6 [SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses. This makes things easier to track down, especially in modules. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/unaligned.c b/arch/sparc64/kernel/unaligned.c index bb2d685778..a9b765271b 100644 --- a/arch/sparc64/kernel/unaligned.c +++ b/arch/sparc64/kernel/unaligned.c @@ -20,6 +20,7 @@ #include #include #include +#include #include /* #define DEBUG_MNA */ @@ -291,7 +292,8 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) if (count < 5) { last_time = jiffies; count++; - printk("Kernel unaligned access at TPC[%lx]\n", regs->tpc); + printk("Kernel unaligned access at TPC[%lx] ", regs->tpc); + print_symbol("%s\n", regs->tpc); } if (!ok_for_kernel(insn) || dir == both) {