9
0
Fork 0

gpiolib: gpiolib command: show label only for requested pins

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2014-01-09 21:58:39 +04:00 committed by Sascha Hauer
parent 4fcad5129e
commit d1e54c4bc2
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ static int do_gpiolib(int argc, char *argv[])
3, (dir < 0) ? "unk" : ((dir == GPIOF_DIR_IN) ? "in" : "out"),
3, (val < 0) ? "unk" : ((val == 0) ? "lo" : "hi"),
9, gi->requested ? "true" : "false",
gi->label ? gi->label : "");
(gi->requested && gi->label) ? gi->label : "");
}
return 0;