Skip to content

Commit 9d9f204

Browse files
committed
genirq/proc: Add missing space separator back
The recent conversion of show_interrupts() to seq_put_decimal_ull_width() caused a formatting regression as it drops a previosuly existing space separator. Add it back by unconditionally inserting a space after the interrupt counts and removing the extra leading space from the chip name prints. Fixes: f9ed1f7 ("genirq/proc: Use seq_put_decimal_ull_width() for decimal values") Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Reviewed-by: David Wang <[email protected]> Link: https://lore.kernel.org/all/87zfldt5g4.ffs@tglx Closes: https://lore.kernel.org/all/[email protected]
1 parent ee3878b commit 9d9f204

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kernel/irq/proc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,17 +501,18 @@ int show_interrupts(struct seq_file *p, void *v)
501501

502502
seq_put_decimal_ull_width(p, " ", cnt, 10);
503503
}
504+
seq_putc(p, ' ');
504505

505506
raw_spin_lock_irqsave(&desc->lock, flags);
506507
if (desc->irq_data.chip) {
507508
if (desc->irq_data.chip->irq_print_chip)
508509
desc->irq_data.chip->irq_print_chip(&desc->irq_data, p);
509510
else if (desc->irq_data.chip->name)
510-
seq_printf(p, " %8s", desc->irq_data.chip->name);
511+
seq_printf(p, "%8s", desc->irq_data.chip->name);
511512
else
512-
seq_printf(p, " %8s", "-");
513+
seq_printf(p, "%8s", "-");
513514
} else {
514-
seq_printf(p, " %8s", "None");
515+
seq_printf(p, "%8s", "None");
515516
}
516517
if (desc->irq_data.domain)
517518
seq_printf(p, " %*lu", prec, desc->irq_data.hwirq);

0 commit comments

Comments
 (0)