diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2007-10-31 12:06:13 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-11-07 00:40:52 +0100 |
commit | ddd6fc7923fbcfbb53f9431cbc981b1c12636e14 (patch) | |
tree | 5ceffe9caec95763ee7543f33808b1f0bf844f26 /arch/ia64/kernel/irq.c | |
parent | [IA64] Disable/re-enable CPE interrupts on Altix (diff) | |
download | linux-ddd6fc7923fbcfbb53f9431cbc981b1c12636e14.tar.xz linux-ddd6fc7923fbcfbb53f9431cbc981b1c12636e14.zip |
[IA64] Clean up /proc/interrupts output
Clean up /proc/interrupts output on the system that has 10 or more
CPUs.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/irq.c')
-rw-r--r-- | arch/ia64/kernel/irq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c index 44be1c952b7c..6dee579f205f 100644 --- a/arch/ia64/kernel/irq.c +++ b/arch/ia64/kernel/irq.c @@ -61,9 +61,11 @@ int show_interrupts(struct seq_file *p, void *v) unsigned long flags; if (i == 0) { - seq_printf(p, " "); + char cpuname[16]; + seq_printf(p, " "); for_each_online_cpu(j) { - seq_printf(p, "CPU%d ",j); + snprintf(cpuname, 10, "CPU%d", j); + seq_printf(p, "%10s ", cpuname); } seq_putc(p, '\n'); } |