
From: Andi Kleen <ak@muc.de>

Print mce bank enable mask in sysfs in hex

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/arch/x86_64/kernel/mce.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/x86_64/kernel/mce.c~x86-64-print-mce-bank-enable-mask-in-hex arch/x86_64/kernel/mce.c
--- 25/arch/x86_64/kernel/mce.c~x86-64-print-mce-bank-enable-mask-in-hex	Tue Sep 14 17:03:29 2004
+++ 25-akpm/arch/x86_64/kernel/mce.c	Tue Sep 14 17:03:29 2004
@@ -470,7 +470,7 @@ static struct sys_device device_mce = {
 /* Why are there no generic functions for this? */
 #define ACCESSOR(name, var, start) \
 	static ssize_t show_ ## name(struct sys_device *s, char *buf) { 	   	   \
-		return sprintf(buf, "%lu\n", (unsigned long)var);		   \
+		return sprintf(buf, "%lx\n", (unsigned long)var);		   \
 	} 									   \
 	static ssize_t set_ ## name(struct sys_device *s,const char *buf,size_t siz) { \
 		char *end; 							   \
_
