summaryrefslogtreecommitdiffstats
path: root/tools/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpio')
-rw-r--r--tools/gpio/lsgpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index 6af118cc7efb..1124da375942 100644
--- a/tools/gpio/lsgpio.c
+++ b/tools/gpio/lsgpio.c
@@ -116,10 +116,10 @@ int list_device(const char *device_name)
fprintf(stdout, " \"%s\"", linfo.name);
else
fprintf(stdout, " unnamed");
- if (linfo.label[0])
- fprintf(stdout, " \"%s\"", linfo.label);
+ if (linfo.consumer[0])
+ fprintf(stdout, " \"%s\"", linfo.consumer);
else
- fprintf(stdout, " unlabeled");
+ fprintf(stdout, " unused");
if (linfo.flags) {
fprintf(stdout, " [");
print_flags(linfo.flags);