[Bug 195330] New: Reduce gpioctl output
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Nov 24 09:10:21 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195330
Bug ID: 195330
Summary: Reduce gpioctl output
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: jumpnowtek at gmail.com
gpioctl enumerates non-switch cmdline args to stdout when
doing simple reads or writes.
root at duovero:~ # gpioctl 110
0/110
0
root at duovero:~ # gpioctl 110 1
0/110
1/1
root at duovero:~ # gpioctl 110
0/110
1
It's confusing and not documented.
I'm suggesting removing those lines so the output looks like
root at duovero:~ # gpioctl 110
1
root at duovero:~ # gpioctl 110 0
root at duovero:~ # gpioctl 110
0
scott at fbsd:/usr/src/usr.sbin % svn diff
Index: gpioctl/gpioctl.c
===================================================================
--- gpioctl/gpioctl.c (revision 274926)
+++ gpioctl/gpioctl.c (working copy)
@@ -224,8 +224,6 @@
}
argv += optind;
argc -= optind;
- for (i = 0; i < argc; i++)
- printf("%d/%s\n", i, argv[i]);
if (ctlfile == NULL)
ctlfile = defctlfile;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list