]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86-64: print mce bank enable mask in hex
authorAndi Kleen <ak@muc.de>
Fri, 17 Sep 2004 05:01:19 +0000 (22:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 17 Sep 2004 05:01:19 +0000 (22:01 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/mce.c

index 432f799708d5a2f6781aee047afe235ebd37091e..8fb7eeb9258ce1b553f09fbf871aba3c0743d25c 100644 (file)
@@ -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;                                                         \