irqdomain: let the output of irq number align from left side
Subsystems (2)
PATCH 1/1 irqdomain: let the output of irq number align from left side
Except irq number, the rest columns all align from left side, the output is ugly as following shows,
irq hwirq chip name chip data domain name 29 0x0001d GIC 0x805e1070 /interrupt-<snip> 34 0x00022 GIC 0x805e1070 /interrupt-<snip>
After applying the fix, the output like that,
irq hwirq chip name chip data domain name 29 0x0001d GIC 0x805e1070 /interrupt-<snip> 34 0x00022 GIC 0x805e1070 /interrupt-<snip>
Cc Grant Likely <[email protected]>
Cc Mark Brown <[email protected]>
Signed-off-by Hui Wang <[email protected]>
---
This is a trivial output alignment fix, i don't know if Grant still maintain the irqdomain subsystem, Cced to Mark for a backup.
kernel/irq/irqdomain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/irq/irqdomain.c +1 -1
@@ -712,7 +712,7 @@ static int virq_debug_show(struct seq_file *m, void *private)if (desc->action && desc->action->handler) {struct irq_chip *chip; -seq_printf (m,"%5d " , i); +seq_printf (m,"%-5d " , i);seq_printf (m,"0x%05lx " , desc->irq_data.hwirq); chip =irq_desc_get_chip (desc);
Signature · 1 line
1.7.6
PATCH 1/1 irqdomain: let the output of irq number align from left side
Hi,
Quoted 11 lines · Hui Wang
Except irq number, the rest columns all align from left side, the output is ugly as following shows,
irq hwirq chip name chip data domain name 29 0x0001d GIC 0x805e1070 /interrupt-<snip> 34 0x00022 GIC 0x805e1070 /interrupt-<snip>After applying the fix, the output like that,
irq hwirq chip name chip data domain name 29 0x0001d GIC 0x805e1070 /interrupt-<snip> 34 0x00022 GIC 0x805e1070 /interrupt-<snip>
I prefer numbers to be right aligned, because that makes numbers with different numbers of digits easier to read.
Lothar Wa?mann
Signature · 9 lines
___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________