index
:
openwrt.git
OpenWrt Source Repository
log msg
author
committer
range
feature/odhcpd_odhcp6c_udhcpc-capsdrop
linksys3200ac-master
master
about
summary
refs
log
tree
commit
diff
path:
root
/
package
/
gpioctl
/
src
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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
4769134ec3f4bed51d1cf9dcce711eb91094ec5e
(
patch
)
tree
900431a14571b9503224089fa7f934a91d08dd8c
/
package/gpioctl/src
parent
c25cc7e6e5d7f7f6ea0713837ae2050bd608a981
(
diff
)
gpioctl get: Fix typo in the printf arguments.
SVN-Revision: 10603
Diffstat
(limited to 'package/gpioctl/src')
-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);