From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834AbdBJTB3 (ORCPT ); Fri, 10 Feb 2017 14:01:29 -0500 Received: from dukecmmtar04.coxmail.com ([68.99.120.47]:62082 "EHLO dukecmmtar04.coxmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdBJTB2 (ORCPT ); Fri, 10 Feb 2017 14:01:28 -0500 From: H Hartley Sweeten To: linux-kernel@vger.kernel.org Cc: H Hartley Sweeten , Thomas Gleixner Subject: [PATCH] getirq: fix /proc/interrupts output alignment Date: Fri, 10 Feb 2017 09:54:16 -0700 Message-Id: <20170210165416.5629-1-hsweeten@visionengravers.com> X-Mailer: git-send-email 2.10.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Thomas Gleixner --- 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