diff options
Diffstat (limited to 'tools/gpio/lsgpio.c')
-rw-r--r-- | tools/gpio/lsgpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index 5535ce81f8f7..6af118cc7efb 100644 --- a/tools/gpio/lsgpio.c +++ b/tools/gpio/lsgpio.c | |||
@@ -111,9 +111,9 @@ int list_device(const char *device_name) | |||
111 | perror("Failed to issue LINEINFO IOCTL\n"); | 111 | perror("Failed to issue LINEINFO IOCTL\n"); |
112 | goto exit_close_error; | 112 | goto exit_close_error; |
113 | } | 113 | } |
114 | fprintf(stdout, "\tline %d:", linfo.line_offset); | 114 | fprintf(stdout, "\tline %2d:", linfo.line_offset); |
115 | if (linfo.name[0]) | 115 | if (linfo.name[0]) |
116 | fprintf(stdout, " %s", linfo.name); | 116 | fprintf(stdout, " \"%s\"", linfo.name); |
117 | else | 117 | else |
118 | fprintf(stdout, " unnamed"); | 118 | fprintf(stdout, " unnamed"); |
119 | if (linfo.label[0]) | 119 | if (linfo.label[0]) |