projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114a2c8
)
gpioinfo: tweak the output format
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Mon, 9 Jan 2017 14:14:51 +0000
(15:14 +0100)
committer
Bartosz 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
patch
|
blob
|
history
diff --git
a/gpioinfo.c
b/gpioinfo.c
index 1c2e1dc1c7ba1ee0f35959ef5d66ec606ea05a4f..876d1c3e9488725b6788445d48e2627ade90fe8b 100644
(file)
--- 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, 1
2
, "%s ",
+ prinfo(&overflow, 1
3
, "%s ",
active_state == GPIOD_ACTIVE_STATE_LOW
? "active-low"
: "active-high");