All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Extend gpio label column width in omap_gpio debugfs file
@ 2008-11-12  8:02 Jarkko Nikula
  2008-11-14  1:26 ` David Brownell
  2008-11-25 22:33 ` Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: Jarkko Nikula @ 2008-11-12  8:02 UTC (permalink / raw)
  To: linux-omap; +Cc: Jarkko Nikula

There are already various drivers having bigger label than 10 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 <jarkko.nikula@nokia.com>
---
 arch/arm/plat-omap/gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 8bb4542..821100d 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -1820,7 +1820,7 @@ static int dbg_gpio_show(struct seq_file *s, void *unused)
 				seq_printf(s, "MPUIO %2d ", j);
 			else
 				seq_printf(s, "GPIO %3d ", gpio);
-			seq_printf(s, "(%10s): %s %s",
+			seq_printf(s, "(%-20.20s): %s %s",
 					label,
 					is_in ? "in " : "out",
 					value ? "hi"  : "lo");
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-25 22:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12  8:02 [PATCH] ARM: OMAP: Extend gpio label column width in omap_gpio debugfs file Jarkko Nikula
2008-11-14  1:26 ` David Brownell
2008-11-25 22:33 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.