]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Print out return PC in cheetah_log_errors().
authorDavid S. Miller <davem@sunset.davemloft.net>
Sun, 2 Apr 2006 07:29:56 +0000 (23:29 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Apr 2006 05:56:37 +0000 (22:56 -0700)
This makes debugging things a little bit easier.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/traps.c

index ff090bb9734b82a8f356c156d8f2ce86581187ae..2793a5d823803cb7b96055802935179d5e3d4333 100644 (file)
@@ -1130,9 +1130,9 @@ static void cheetah_log_errors(struct pt_regs *regs, struct cheetah_err_info *in
               (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(),
               afsr, afar,
               (afsr & CHAFSR_TL1) ? 1 : 0);
-       printk("%s" "ERROR(%d): TPC[%016lx] TNPC[%016lx] TSTATE[%016lx]\n",
+       printk("%s" "ERROR(%d): TPC[%lx] TNPC[%lx] O7[%lx] TSTATE[%lx]\n",
               (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(),
-              regs->tpc, regs->tnpc, regs->tstate);
+              regs->tpc, regs->tnpc, regs->u_regs[UREG_I7], regs->tstate);
        printk("%s" "ERROR(%d): M_SYND(%lx),  E_SYND(%lx)%s%s\n",
               (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(),
               (afsr & CHAFSR_M_SYNDROME) >> CHAFSR_M_SYNDROME_SHIFT,