From: Bartosz Golaszewski Date: Mon, 9 Jan 2017 14:14:51 +0000 (+0100) Subject: gpioinfo: tweak the output format X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c1c11a3162d56e0c3a272e8aa59c1a771fe81f61;p=qemu-gpiodev%2Flibgpiod.git gpioinfo: tweak the output format Add an additional space before the active state for better readability. Signed-off-by: Bartosz Golaszewski --- diff --git a/gpioinfo.c b/gpioinfo.c index 1c2e1dc..876d1c3 100644 --- a/gpioinfo.c +++ b/gpioinfo.c @@ -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");