gpioctl get: Fix typo in the printf arguments.
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 15 Mar 2008 19:59:45 +0000 (19:59 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 15 Mar 2008 19:59:45 +0000 (19:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10603 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/gpioctl/src/main.c

index 9aa3173..8ad2774 100644 (file)
@@ -63,7 +63,7 @@ main(int argc, char **argv)
        } else if (!strcmp(argv[1], "get"))
        {
                result = ioctl(fd, GPIO_GET, gpio_pin);
-               printf("Pin %d is %s\n", (result ? "HIGH" : "LOW"));
+               printf("Pin %d is %s\n", gpio_pin, (result ? "HIGH" : "LOW"));
        } else if (!strcmp(argv[1], "set"))
        {
                ioctl(fd, GPIO_SET, gpio_pin);