From: H Hartley Sweeten Date: Fri, 10 Feb 2017 16:54:16 +0000 (-0700) Subject: genirq: Fix /proc/interrupts output alignment X-Git-Tag: v4.14-rc1~1515^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f435da416beaacc8934fc21820d9488269b39c98;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: http://lkml.kernel.org/r/20170210165416.5629-1-hsweeten@visionengravers.com Signed-off-by: Thomas Gleixner --- diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index feaa813..c53edad 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -487,6 +487,8 @@ int show_interrupts(struct seq_file *p, void *v) } if (desc->irq_data.domain) seq_printf(p, " %*d", prec, (int) desc->irq_data.hwirq); + else + seq_printf(p, " %*s", prec, ""); #ifdef CONFIG_GENERIC_IRQ_SHOW_LEVEL seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge"); #endif