diff options
author | Michael Büsch <mb@bu3sch.de> | 2008-03-15 19:59:45 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2008-03-15 19:59:45 +0000 |
commit | 897042bd39f286e29ca2775d49c0242d3ee38756 (patch) | |
tree | fdff138e1ee0940536d0b387265ba0db808a4d8a | |
parent | a546c1c539739c5350f2e3ca962201bd9442980b (diff) | |
download | upstream-897042bd39f286e29ca2775d49c0242d3ee38756.tar.gz upstream-897042bd39f286e29ca2775d49c0242d3ee38756.tar.bz2 upstream-897042bd39f286e29ca2775d49c0242d3ee38756.zip |
gpioctl get: Fix typo in the printf arguments.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10603 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/gpioctl/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |