projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3b604
)
[IA64] Clean up /proc/interrupts output
author
Kenji Kaneshige
<kaneshige.kenji@jp.fujitsu.com>
Wed, 31 Oct 2007 11:06:13 +0000
(20:06 +0900)
committer
Tony Luck
<tony.luck@intel.com>
Tue, 6 Nov 2007 23:40:52 +0000
(15:40 -0800)
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>
arch/ia64/kernel/irq.c
patch
|
blob
|
history
diff --git
a/arch/ia64/kernel/irq.c
b/arch/ia64/kernel/irq.c
index 44be1c952b7ca2cc6761f65c112a7f737c1f0b7f..6dee579f205fc451bcffbcbaddd0c370b6d35104 100644
(file)
--- 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');
}