summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorDave Peterson2006-03-26 11:38:54 +0200
committerLinus Torvalds2006-03-26 18:57:08 +0200
commite009356f738634d8a137cca35503b9b33322c858 (patch)
treea57a377a6b2c691075bcd29e6f026ec5289bd978 /drivers/edac
parent[PATCH] EDAC: documentation spelling fixes (diff)
downloadkernel-qcow2-linux-e009356f738634d8a137cca35503b9b33322c858.tar.gz
kernel-qcow2-linux-e009356f738634d8a137cca35503b9b33322c858.tar.xz
kernel-qcow2-linux-e009356f738634d8a137cca35503b9b33322c858.zip
[PATCH] EDAC: use sysbus_message in e752x code
Patch from Dave Jiang <djiang@mvista.com>: Fix EDAC e752x driver so it outputs sysbus-specific error message when sysbus error detected. Signed-off-by: David S. Peterson <dsp@llnl.gov> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/e752x_edac.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index 265cce72497c..66572c5323ad 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -472,8 +472,7 @@ static inline void membuf_error(u8 errors, int *error_found, int handle_error)
do_membuf_error(errors);
}
-#if 0
-char *sysbus_message[10] = {
+static char *sysbus_message[10] = {
"Addr or Request Parity",
"Data Strobe Glitch",
"Addr Strobe Glitch",
@@ -484,7 +483,6 @@ char *sysbus_message[10] = {
"Memory Parity",
"IO Subsystem Parity"
};
-#endif /* 0 */
static void do_sysbus_error(int fatal, u32 errors)
{
@@ -493,7 +491,7 @@ static void do_sysbus_error(int fatal, u32 errors)
for (i = 0; i < 10; i++) {
if (errors & (1 << i))
e752x_printk(KERN_WARNING, "%sError System Bus %s\n",
- fatal_message[fatal], global_message[i]);
+ fatal_message[fatal], sysbus_message[i]);
}
}