Skip to contentSkip to conversation

i386/x86-64: adjust /proc/interrupts column headings

PATCH In review Andi Kleen 1 participant 1 message Jun 24, 2006

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 69/82 i386/x86-64: adjust /proc/interrupts column headings

From: "Jan Beulich" <[email protected]>

With (significantly) more than 10 CPUs online, the column headings drifted off the positions of the column contents with growing CPU numbers.

---
 arch/i386/kernel/irq.c   |    2 +-
 arch/x86_64/kernel/irq.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/i386/kernel/irq.c +1 -1
Index: linux/arch/i386/kernel/irq.c
===================================================================
@@ -219,7 +219,7 @@ int show_interrupts(struct seq_file *p, 
 	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');
 	}
 
arch/x86_64/kernel/irq.c +1 -1
Index: linux/arch/x86_64/kernel/irq.c
===================================================================
@@ -39,7 +39,7 @@ int show_interrupts(struct seq_file *p, 
 	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');
 	}