From: Jarkko Nikula Date: Wed, 19 Nov 2008 23:36:17 +0000 (-0800) Subject: gpiolib: extend gpio label column width in debugfs file X-Git-Tag: v2.6.27.8~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0efdd6fd2451074d61deb9133f1ab06e10434510;p=people%2Fms%2Flinux.git gpiolib: extend gpio label column width in debugfs file commit 6e8ba729b6332f2a75572e02480936d2b51665aa upstream. 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 Acked-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 59f6ad8a98c0..9ed594792ccb 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1049,7 +1049,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