ソースを参照

ARM: OMAP: Extend gpio label column width in omap_gpio debugfs file

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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Jarkko Nikula 16 年 前
コミット
21c867f1de
1 ファイル変更1 行追加1 行削除
  1. 1 1
      arch/arm/plat-omap/gpio.c

+ 1 - 1
arch/arm/plat-omap/gpio.c

@@ -1812,7 +1812,7 @@ static int dbg_gpio_show(struct seq_file *s, void *unused)
 				seq_printf(s, "MPUIO %2d ", j);
 				seq_printf(s, "MPUIO %2d ", j);
 			else
 			else
 				seq_printf(s, "GPIO %3d ", gpio);
 				seq_printf(s, "GPIO %3d ", gpio);
-			seq_printf(s, "(%10s): %s %s",
+			seq_printf(s, "(%-20.20s): %s %s",
 					label,
 					label,
 					is_in ? "in " : "out",
 					is_in ? "in " : "out",
 					value ? "hi"  : "lo");
 					value ? "hi"  : "lo");