Skip to content

Commit 19cd56c

Browse files
Davidlohr Buesotorvalds
authored andcommitted
procfs: fix /proc/softirqs formatting
The length of the BLOCK_IPOLL string is making i's value be printed too far to the right. This patch fixes this and makes the output a bit neater. Currently: CPU0 HI: 0 TIMER: 599792 NET_TX: 2 NET_RX: 6 BLOCK: 80807 BLOCK_IOPOLL: 0 TASKLET: 20012 SCHED: 0 HRTIMER: 63 RCU: 619279 With patch: CPU0 HI: 0 TIMER: 585582 NET_TX: 2 NET_RX: 6 BLOCK: 80320 BLOCK_IOPOLL: 0 TASKLET: 19287 SCHED: 0 HRTIMER: 62 RCU: 604441 Signed-off-by: Davidlohr Bueso <dave@gnu.org> Acked-by: Keika Kobayashi <kobayashi.kk@ncos.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 03f890f commit 19cd56c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/proc/softirqs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ static int show_softirqs(struct seq_file *p, void *v)
1010
{
1111
int i, j;
1212

13-
seq_printf(p, " ");
13+
seq_printf(p, " ");
1414
for_each_possible_cpu(i)
1515
seq_printf(p, "CPU%-8d", i);
1616
seq_printf(p, "\n");
1717

1818
for (i = 0; i < NR_SOFTIRQS; i++) {
19-
seq_printf(p, "%8s:", softirq_to_name[i]);
19+
seq_printf(p, "%12s:", softirq_to_name[i]);
2020
for_each_possible_cpu(j)
2121
seq_printf(p, " %10u", kstat_softirqs_cpu(i, j));
2222
seq_printf(p, "\n");

0 commit comments

Comments
 (0)