]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ia64: fix bug in prof_cpu_mask_read_proc()
authorPaul Jackson <pj@sgi.com>
Mon, 10 Nov 2003 10:27:43 +0000 (02:27 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 10 Nov 2003 10:27:43 +0000 (02:27 -0800)
Display of cpumask for /proc/irq/prof_cpu_mask has a botch in the print
loop - should consume 2 bytes per loop.

arch/ia64/kernel/irq.c

index 471bb733efbcde4753ad8c9136d8743a6bb84982..f9601ef77d01777c11d74930e32718f92066e00c 100644 (file)
@@ -1039,7 +1039,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
        if (count < HEX_DIGITS+1)
                return -EINVAL;
 
-       for (k = 0; k < sizeof(cpumask_t)/sizeof(unsigned long); ++k) {
+       for (k = 0; k < sizeof(cpumask_t)/sizeof(u16); ++k) {
                int j = sprintf(page, "%04hx", (u16)cpus_coerce(*mask));
                len += j;
                page += j;