From 6ba4aff064aa5ed5d252ff136bd5f375f4db5fae Mon Sep 17 00:00:00 2001 From: mb Date: Sat, 15 Mar 2008 19:59:45 +0000 Subject: [PATCH] gpioctl get: Fix typo in the printf arguments. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10603 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/gpioctl/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gpioctl/src/main.c b/package/gpioctl/src/main.c index 9aa317350..8ad27749b 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);