powerpc/pseries: Print corrupt r3 in FWNMI code
authorAnton Blanchard <anton@samba.org>
Tue, 10 May 2011 13:34:03 +0000 (13:34 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:43 +0000 (14:30 +1000)
I have a report of an FWNMI with an r3 value that we think is
corrupt, but since we don't print r3 we have no idea what was
wrong with it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/ras.c

index 164a8eb45923f3370625515b18c5a5ae7aa16a98..086d2ae4e06a2c322b43409395e514cab30179af 100644 (file)
@@ -227,7 +227,7 @@ static struct rtas_error_log *fwnmi_get_errinfo(struct pt_regs *regs)
        struct rtas_error_log *h, *errhdr = NULL;
 
        if (!VALID_FWNMI_BUFFER(regs->gpr[3])) {
-               printk(KERN_ERR "FWNMI: corrupt r3\n");
+               printk(KERN_ERR "FWNMI: corrupt r3 0x%016lx\n", regs->gpr[3]);
                return NULL;
        }