mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] getirq: fix /proc/interrupts output alignment
@ 2017-02-10 16:54 H Hartley Sweeten
  2017-02-10 19:22 ` [tip:irq/core] genirq: Fix " tip-bot for H Hartley Sweeten
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2017-02-10 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: H Hartley Sweeten, Thomas Gleixner

If the irq_desc being output does not have a domain the information
following the 'name' is not aligned correctly.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/proc.c | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.10.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-10 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-10 16:54 [PATCH] getirq: fix /proc/interrupts output alignment H Hartley Sweeten
2017-02-10 19:22 ` [tip:irq/core] genirq: Fix " tip-bot for H Hartley Sweeten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome