From patchwork Tue Jul 17 08:37:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 1203981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D3B8ADF25A for ; Tue, 17 Jul 2012 08:41:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sr3Hg-0003yT-UD; Tue, 17 Jul 2012 08:37:33 +0000 Received: from mail.windriver.com ([147.11.1.11]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sr3HX-0003yE-HN for linux-arm-kernel@lists.infradead.org; Tue, 17 Jul 2012 08:37:25 +0000 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id q6H8bIWJ026131 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 17 Jul 2012 01:37:18 -0700 (PDT) Received: from localhost.localdomain (128.224.163.220) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Tue, 17 Jul 2012 01:37:18 -0700 From: Hui Wang To: , Subject: [PATCH] irqdomain: let the output of irq number align from left side Date: Tue, 17 Jul 2012 16:37:10 +0800 Message-ID: <1342514230-8729-1-git-send-email-jason77.wang@gmail.com> X-Mailer: git-send-email 1.5.6.5 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jason77.wang[at]gmail.com) -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [147.11.1.11 listed in list.dnswl.org] 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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- 34 0x00022 GIC 0x805e1070 /interrupt- After applying the fix, the output like that, irq hwirq chip name chip data domain name 29 0x0001d GIC 0x805e1070 /interrupt- 34 0x00022 GIC 0x805e1070 /interrupt- Cc: Grant Likely Cc: Mark Brown Signed-off-by: Hui Wang --- 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);