From: jason77.wang@gmail.com (Hui Wang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] irqdomain: let the output of irq number align from left side
Date: Tue, 17 Jul 2012 16:37:10 +0800 [thread overview]
Message-ID: <1342514230-8729-1-git-send-email-jason77.wang@gmail.com> (raw)
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 <grant.likely@secretlab.ca>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
---
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(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 41c1564..575e643 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -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);
--
1.7.6
next reply other threads:[~2012-07-17 8:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-17 8:37 Hui Wang [this message]
2012-07-17 12:01 ` [PATCH] irqdomain: let the output of irq number align from left side Lothar Waßmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1342514230-8729-1-git-send-email-jason77.wang@gmail.com \
--to=jason77.wang@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).