]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: irq no should not use hex in /proc/interrupts
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 25 Sep 2008 02:04:36 +0000 (19:04 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:12 +0000 (16:53 +0200)
Arjan van de Ven noticed that we changed IRQ numbers from decimal
to hex in /proc/interrupts - that can break user-space utilities
like irqbalanced.

Reported-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irq_32.c
arch/x86/kernel/irq_64.c

index b2e1082cf5adf4c831d6a3cab624c21ac5bec7d7..001772ffc918d2a85a96b49a5666ed158dff2dd8 100644 (file)
@@ -307,7 +307,7 @@ int show_interrupts(struct seq_file *p, void *v)
                action = desc->action;
                if (!action && !any_count)
                        goto skip;
-               seq_printf(p, "%#x: ",i);
+               seq_printf(p, "%3d: ", i);
 #ifndef CONFIG_SMP
                seq_printf(p, "%10u ", kstat_irqs(i));
 #else
index c2fca89a3f7eb35ef375b5d087befa731c22c4b7..ec26610912835e3633fe2bc761ae13664a32170e 100644 (file)
@@ -112,7 +112,7 @@ int show_interrupts(struct seq_file *p, void *v)
                action = desc->action;
                if (!action && !any_count)
                        goto skip;
-               seq_printf(p, "%#x: ",i);
+               seq_printf(p, "%3d: ", i);
 #ifndef CONFIG_SMP
                seq_printf(p, "%10u ", kstat_irqs(i));
 #else