]> sigrok.org Git - libsigrok.git/commitdiff
session: Remove debug spew on I/O events
authorDaniel Elstner <redacted>
Mon, 23 Nov 2015 19:36:08 +0000 (20:36 +0100)
committerUwe Hermann <redacted>
Thu, 26 Nov 2015 20:44:31 +0000 (21:44 +0100)
This really is a bit much with some drivers that do lots of small
I/O transfers.

src/session.c
src/usb.c

index c84edcbfdb27ed0c9119727dbf00ba2c5db40b07..f9df6e1f440411e8081d9fbef5498c75ab54a7de 100644 (file)
@@ -117,21 +117,12 @@ static gboolean fd_source_dispatch(GSource *source,
                GSourceFunc callback, void *user_data)
 {
        struct fd_source *fsource;
-       const char *name;
        unsigned int revents;
        gboolean keep;
 
        fsource = (struct fd_source *)source;
-       name = g_source_get_name(source);
        revents = fsource->pollfd.revents;
 
-       if (revents != 0) {
-               sr_spew("%s: %s " G_POLLFD_FORMAT ", revents 0x%.2X",
-                       __func__, name, fsource->pollfd.fd, revents);
-       } else {
-               sr_spew("%s: %s " G_POLLFD_FORMAT ", timed out",
-                       __func__, name, fsource->pollfd.fd);
-       }
        if (!callback) {
                sr_err("Callback not set, cannot dispatch event.");
                return G_SOURCE_REMOVE;
index 02510caed4edca7293410788156521d35be81e61..c3c34e009b2583d59750311e3309ceb316de4ecb 100644 (file)
--- a/src/usb.c
+++ b/src/usb.c
@@ -134,10 +134,6 @@ static gboolean usb_source_dispatch(GSource *source,
                pollfd = g_ptr_array_index(usource->pollfds, i);
                revents |= pollfd->revents;
        }
-       if (revents != 0)
-               sr_spew("%s: revents 0x%.2X", __func__, revents);
-       else
-               sr_spew("%s: timed out", __func__);
 
        if (!callback) {
                sr_err("Callback not set, cannot dispatch event.");