From: Michael Büsch Date: Sat, 15 Mar 2008 19:59:45 +0000 (+0000) Subject: gpioctl get: Fix typo in the printf arguments. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4769134ec3f4bed51d1cf9dcce711eb91094ec5e;p=librecmc%2Flibrecmc.git gpioctl get: Fix typo in the printf arguments. SVN-Revision: 10603 --- diff --git a/package/gpioctl/src/main.c b/package/gpioctl/src/main.c index 9aa317350f..8ad27749b4 100644 --- a/package/gpioctl/src/main.c +++ b/package/gpioctl/src/main.c @@ -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);