소스 검색

[PATCH] i386/x86-64: adjust /proc/interrupts column headings

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>
Jan Beulich 19 년 전
부모
커밋
bdbdaa791f
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      arch/i386/kernel/irq.c
  2. 1 1
      arch/x86_64/kernel/irq.c

+ 1 - 1
arch/i386/kernel/irq.c

@@ -227,7 +227,7 @@ int show_interrupts(struct seq_file *p, void *v)
 	if (i == 0) {
 	if (i == 0) {
 		seq_printf(p, "           ");
 		seq_printf(p, "           ");
 		for_each_online_cpu(j)
 		for_each_online_cpu(j)
-			seq_printf(p, "CPU%d       ",j);
+			seq_printf(p, "CPU%-8d",j);
 		seq_putc(p, '\n');
 		seq_putc(p, '\n');
 	}
 	}
 
 

+ 1 - 1
arch/x86_64/kernel/irq.c

@@ -39,7 +39,7 @@ int show_interrupts(struct seq_file *p, void *v)
 	if (i == 0) {
 	if (i == 0) {
 		seq_printf(p, "           ");
 		seq_printf(p, "           ");
 		for_each_online_cpu(j)
 		for_each_online_cpu(j)
-			seq_printf(p, "CPU%d       ",j);
+			seq_printf(p, "CPU%-8d",j);
 		seq_putc(p, '\n');
 		seq_putc(p, '\n');
 	}
 	}