All of lore.kernel.org
 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 related	[flat|nested] 2+ messages in thread

* [tip:irq/core] genirq: Fix /proc/interrupts output alignment
  2017-02-10 16:54 [PATCH] getirq: fix /proc/interrupts output alignment H Hartley Sweeten
@ 2017-02-10 19:22 ` tip-bot for H Hartley Sweeten
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for H Hartley Sweeten @ 2017-02-10 19:22 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, hsweeten, linux-kernel, hpa, mingo

Commit-ID:  f435da416beaacc8934fc21820d9488269b39c98
Gitweb:     http://git.kernel.org/tip/f435da416beaacc8934fc21820d9488269b39c98
Author:     H Hartley Sweeten <hsweeten@visionengravers.com>
AuthorDate: Fri, 10 Feb 2017 09:54:16 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 10 Feb 2017 20:17:52 +0100

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>

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

^ permalink raw reply related	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.