From 1afa1a91a752d29fe66129d55065473a1d835974 Mon Sep 17 00:00:00 2001 From: Paul Jackson Date: Mon, 10 Nov 2003 02:27:43 -0800 Subject: [PATCH] [PATCH] ia64: fix bug in prof_cpu_mask_read_proc() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c index 471bb733efbcd..f9601ef77d017 100644 --- a/arch/ia64/kernel/irq.c +++ b/arch/ia64/kernel/irq.c @@ -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; -- 2.53.0