diff mbox

powerpc: Print corrupt r3 in FWNMI code

Message ID 20110511093403.1f4b2fc7@kryten (mailing list archive)
State Accepted, archived
Commit f0e939ae373836400b38e090d78fba6a183976f0
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Anton Blanchard May 10, 2011, 11:34 p.m. UTC
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>
---
diff mbox

Patch

Index: linux-net/arch/powerpc/platforms/pseries/ras.c
===================================================================
--- linux-net.orig/arch/powerpc/platforms/pseries/ras.c	2011-05-11 09:26:16.646093026 +1000
+++ linux-net/arch/powerpc/platforms/pseries/ras.c	2011-05-11 09:26:49.836651728 +1000
@@ -227,7 +227,7 @@  static struct rtas_error_log *fwnmi_get_
 	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;
 	}