]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i386/x86-64: adjust /proc/interrupts column headings
authorJan Beulich <jbeulich@novell.com>
Mon, 26 Jun 2006 11:59:23 +0000 (13:59 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:21 +0000 (10:48 -0700)
With (significantly) more than 10 CPUs online, the column headings
drifted off the positions of the column contents with growing CPU
numbers.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/irq.c
arch/x86_64/kernel/irq.c

index 49ce4c31b713fc56a690d701389bc047e72a5a50..061533e0cb5e8efa284258c3619665a287a786e5 100644 (file)
@@ -227,7 +227,7 @@ int show_interrupts(struct seq_file *p, void *v)
        if (i == 0) {
                seq_printf(p, "           ");
                for_each_online_cpu(j)
-                       seq_printf(p, "CPU%d       ",j);
+                       seq_printf(p, "CPU%-8d",j);
                seq_putc(p, '\n');
        }
 
index d8bd0b345b1e2494f936765aef9e6a95da5a72dd..207ecdc39822acbfb7cef983b15b8e9385f5c0b2 100644 (file)
@@ -39,7 +39,7 @@ int show_interrupts(struct seq_file *p, void *v)
        if (i == 0) {
                seq_printf(p, "           ");
                for_each_online_cpu(j)
-                       seq_printf(p, "CPU%d       ",j);
+                       seq_printf(p, "CPU%-8d",j);
                seq_putc(p, '\n');
        }