summaryrefslogtreecommitdiffstats
path: root/tools/gpio/lsgpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpio/lsgpio.c')
-rw-r--r--tools/gpio/lsgpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index 5535ce8..6af118cc 100644
--- a/tools/gpio/lsgpio.c
+++ b/tools/gpio/lsgpio.c
@@ -111,9 +111,9 @@ int list_device(const char *device_name)
perror("Failed to issue LINEINFO IOCTL\n");
goto exit_close_error;
}
- fprintf(stdout, "\tline %d:", linfo.line_offset);
+ fprintf(stdout, "\tline %2d:", linfo.line_offset);
if (linfo.name[0])
- fprintf(stdout, " %s", linfo.name);
+ fprintf(stdout, " \"%s\"", linfo.name);
else
fprintf(stdout, " unnamed");
if (linfo.label[0])
OpenPOWER on IntegriCloud