Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578721 > unrolled thread
| Started by | H Hartley Sweeten <hsweeten@visionengravers.com> |
|---|---|
| First post | 2017-02-10 20:10 +0100 |
| Last post | 2017-02-10 20:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] getirq: fix /proc/interrupts output alignment H Hartley Sweeten <hsweeten@visionengravers.com> - 2017-02-10 20:10 +0100
[tip:irq/core] genirq: Fix /proc/interrupts output alignment tip-bot for H Hartley Sweeten <tipbot@zytor.com> - 2017-02-10 20:30 +0100
| From | H Hartley Sweeten <hsweeten@visionengravers.com> |
|---|---|
| Date | 2017-02-10 20:10 +0100 |
| Subject | [PATCH] getirq: fix /proc/interrupts output alignment |
| Message-ID | <t9oJX-7y4-3@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | tip-bot for H Hartley Sweeten <tipbot@zytor.com> |
|---|---|
| Date | 2017-02-10 20:30 +0100 |
| Subject | [tip:irq/core] genirq: Fix /proc/interrupts output alignment |
| Message-ID | <t9p3j-7EV-1@gated-at.bofh.it> |
| In reply to | #1578721 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web