gpioinfo: tweak the output format
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Jan 2017 14:14:51 +0000 (15:14 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Jan 2017 14:14:51 +0000 (15:14 +0100)
Add an additional space before the active state for better
readability.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
gpioinfo.c

index 1c2e1dc1c7ba1ee0f35959ef5d66ec606ea05a4f..876d1c3e9488725b6788445d48e2627ade90fe8b 100644 (file)
@@ -122,7 +122,7 @@ static void list_lines(struct gpiod_chip *chip)
 
                prinfo(&overflow, 8, "%s ", direction == GPIOD_DIRECTION_INPUT
                                                ? "input" : "output");
-               prinfo(&overflow, 12, "%s ",
+               prinfo(&overflow, 13, "%s ",
                       active_state == GPIOD_ACTIVE_STATE_LOW
                                                ? "active-low"
                                                : "active-high");