Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751957AbYKLG5W (ORCPT ); Wed, 12 Nov 2008 01:57:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750845AbYKLG5O (ORCPT ); Wed, 12 Nov 2008 01:57:14 -0500 Received: from smtp.nokia.com ([192.100.105.134]:21073 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbYKLG5N (ORCPT ); Wed, 12 Nov 2008 01:57:13 -0500 From: Jarkko Nikula To: linux-kernel@vger.kernel.org Cc: David Brownell , Jarkko Nikula Subject: [patch 2.6.28-rc4] gpiolib: extend gpio label column width in debugfs file Date: Wed, 12 Nov 2008 08:56:13 +0200 Message-Id: <1226472973-16271-1-git-send-email-jarkko.nikula@nokia.com> X-Mailer: git-send-email 1.5.6.5 X-OriginalArrivalTime: 12 Nov 2008 06:56:35.0061 (UTC) FILETIME=[CD376250:01C94493] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 30 There are already various drivers having bigger label than 12 bytes. Most of them fit well under 20 bytes but make column width exact so that oversized labels don't mess up output alignment. Signed-off-by: Jarkko Nikula --- drivers/gpio/gpiolib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index faa1cc6..82020ab 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1134,7 +1134,7 @@ static void gpiolib_dbg_show(struct seq_file *s, struct gpio_chip *chip) continue; is_out = test_bit(FLAG_IS_OUT, &gdesc->flags); - seq_printf(s, " gpio-%-3d (%-12s) %s %s", + seq_printf(s, " gpio-%-3d (%-20.20s) %s %s", gpio, gdesc->label, is_out ? "out" : "in ", chip->get -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/