Skip to contentSkip to conversation

getirq: fix /proc/interrupts output alignment

PATCH New H Hartley Sweeten 2 participants 2 messages Feb 10, 2017 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 getirq: fix /proc/interrupts output alignment

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

---
 kernel/irq/proc.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/irq/proc.c +2 -0
index feaa813..c53edad 100644
@@ -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
Signature · 1 line
2.10.0
#1 lore raw

[tip:irq/core] genirq: Fix /proc/interrupts output alignment

genirq: Fix /proc/interrupts output alignment
Commit-ID:  f435da416beaacc8934fc21820d9488269b39c98
Gitweb:     http://git.kernel.org/tip/f435da416beaacc8934fc21820d9488269b39c98
Author:     H Hartley Sweeten <[email protected]>
AuthorDate: Fri, 10 Feb 2017 09:54:16 -0700
Committer:  Thomas Gleixner <[email protected]>
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.

---
 kernel/irq/proc.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/irq/proc.c +2 -0
index feaa813..c53edad 100644
@@ -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