1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 05:04:04 +02:00

gpioctl get: Fix typo in the printf arguments.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10603 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2008-03-15 19:59:45 +00:00
parent 7ec3b41725
commit 6ba4aff064

View File

@ -63,7 +63,7 @@ main(int argc, char **argv)
} else if (!strcmp(argv[1], "get")) } else if (!strcmp(argv[1], "get"))
{ {
result = ioctl(fd, GPIO_GET, gpio_pin); 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")) } else if (!strcmp(argv[1], "set"))
{ {
ioctl(fd, GPIO_SET, gpio_pin); ioctl(fd, GPIO_SET, gpio_pin);