* [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
* Re: [PATCH] ARM: OMAP: Extend gpio label column width in omap_gpio debugfs file
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
1 sibling, 0 replies; 3+ messages in thread
From: David Brownell @ 2008-11-14 1:26 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-omap
On Wednesday 12 November 2008, Jarkko Nikula wrote:
> 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>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
> ---
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: OMAP: Extend gpio label column width in omap_gpio debugfs file
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
1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2008-11-25 22:33 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-omap
* Jarkko Nikula <jarkko.nikula@nokia.com> [081112 00:03]:
> 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.
Pushing & adding to omap-upstream queue.
Tony
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox