[PATCH] powerpc: wrong error message for e500

From: JÃrÃme Arzel
Date: Thu May 23 2013 - 11:20:58 EST


If there is a bus error while machine check for e500,
the MCSR_BUS_WBERR error type prints a read error message
instead of a write error.

Signed-off-by: JÃrÃme Arzel <jerome.arzel@xxxxxxxxxxx>
---
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -589,7 +589,7 @@ int machine_check_e500(struct pt_regs *r
if (reason & MCSR_BUS_RBERR)
printk("Bus - Read Data Bus Error\n");
if (reason & MCSR_BUS_WBERR)
- printk("Bus - Read Data Bus Error\n");
+ printk("Bus - Write Bus Error\n");
if (reason & MCSR_BUS_IPERR)
printk("Bus - Instruction Parity Error\n");
if (reason & MCSR_BUS_RPERR)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/