Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2014 09:10:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195330] New: Reduce gpioctl output
Message-ID:  <bug-195330-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: jumpnowtek@gmail.com

gpioctl enumerates non-switch cmdline args to stdout when
doing simple reads or writes.

root@duovero:~ # gpioctl 110
0/110
0
root@duovero:~ # gpioctl 110 1
0/110
1/1
root@duovero:~ # gpioctl 110
0/110
1

It's confusing and not documented.

I'm suggesting removing those lines so the output looks like

root@duovero:~ # gpioctl 110
1
root@duovero:~ # gpioctl 110 0
root@duovero:~ # gpioctl 110
0


scott@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195330-8>