projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b5e773
)
genirq: Fix /proc/interrupts output alignment
author
H Hartley Sweeten
<hsweeten@visionengravers.com>
Fri, 10 Feb 2017 16:54:16 +0000
(09:54 -0700)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 10 Feb 2017 19:17:52 +0000
(20:17 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/irq/proc.c
b/kernel/irq/proc.c
index feaa813b84a987a20f195a7eb197482abb3e2015..c53edad7b459d99e8dd98dccab743bf86c2023a2 100644
(file)
--- 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