gpioget: fix help message
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 6 Jan 2017 16:56:28 +0000 (17:56 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 6 Jan 2017 17:08:02 +0000 (18:08 +0100)
Also: add a space for readability.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
gpioget.c

index 746c36fbac55f38fc829b161cb5439312b0bcd43..f82dddef67d6dbd059b27fb7c7bd46b651a6f2b6 100644 (file)
--- a/gpioget.c
+++ b/gpioget.c
@@ -27,7 +27,7 @@ static void print_help(void)
 {
        printf("Usage: %s [CHIP NAME/NUMBER] [LINE OFFSET] <options>\n",
               get_progname());
-       printf("List all GPIO chips\n");
+       printf("Read value from a GPIO line\n");
        printf("Options:\n");
        printf("  -h, --help:\t\tdisplay this message and exit\n");
        printf("  -l, --active-low:\tset the line active state to low\n");
@@ -71,6 +71,7 @@ int main(int argc, char **argv)
                die("gpio line offset must be specified");
 
        device = argv[0];
+
        offset = strtoul(argv[1], &end, 10);
        if (*end != '\0')
                die("invalid GPIO offset: %s", argv[1]);