projects
/
openwrt
/
staging
/
robimarko.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c25cc7e
)
gpioctl get: Fix typo in the printf arguments.
author
Michael Büsch
<mb@bu3sch.de>
Sat, 15 Mar 2008 19:59:45 +0000
(19:59 +0000)
committer
Michael Büsch
<mb@bu3sch.de>
Sat, 15 Mar 2008 19:59:45 +0000
(19:59 +0000)
SVN-Revision: 10603
package/gpioctl/src/main.c
patch
|
blob
|
history
diff --git
a/package/gpioctl/src/main.c
b/package/gpioctl/src/main.c
index 9aa317350f2441d8dd3fb061a2d1150fe6204bb7..8ad27749b45eaf20a40177c9667c9db61e8ce891 100644
(file)
--- 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);