Skip to content

Commit f435da4

Browse files
bigguinessKAGA-KOKO
authored andcommitted
genirq: Fix /proc/interrupts output alignment
If the irq_desc being output does not have a domain associated the information following the 'name' is not aligned correctly. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Link: http://lkml.kernel.org/r/20170210165416.5629-1-hsweeten@visionengravers.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 2b5e773 commit f435da4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎kernel/irq/proc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ int show_interrupts(struct seq_file *p, void *v)
487487
}
488488
if (desc->irq_data.domain)
489489
seq_printf(p, " %*d", prec, (int) desc->irq_data.hwirq);
490+
else
491+
seq_printf(p, " %*s", prec, "");
490492
#ifdef CONFIG_GENERIC_IRQ_SHOW_LEVEL
491493
seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge");
492494
#endif

0 commit comments

Comments
 (0)