Skip to contentSkip to conversation

ia64: Clean up /proc/interrupts output

PATCH New Kenji Kaneshige 1 participant 1 message Oct 31, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64: Clean up /proc/interrupts output

Clean up /proc/interrupts output on the system that has 10 or more CPUs.

---
 arch/ia64/kernel/irq.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Index: linux-2.6.24-rc1/arch/ia64/kernel/irq.c =================================--- linux-2.6.24-rc1.orig/arch/ia64/kernel/irq.c +++ linux-2.6.24-rc1/arch/ia64/kernel/irq.c
@@ -61,9 +61,11 @@ int show_interrupts(struct seq_file *p,
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');
}