Skip to contentSkip to conversation

powerpc: Print corrupt r3 in FWNMI code

PATCH New Anton Blanchard 1 participant 1 message May 10, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Print corrupt r3 in FWNMI code

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.

---

arch/powerpc/platforms/pseries/ras.c +1 -1
Index: linux-net/arch/powerpc/platforms/pseries/ras.c
===================================================================
@@ -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;
 	}