X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fusb.c;h=c3c34e009b2583d59750311e3309ceb316de4ecb;hb=e6b15cb5e609c9263f501d3b12965206feddb42b;hp=ba56e864c12ccf64260e5d824f01655b24db78aa;hpb=b98b70222fd756784e7bb55a4d3356e0e3405679;p=libsigrok.git diff --git a/src/usb.c b/src/usb.c index ba56e864..c3c34e00 100644 --- 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."); @@ -359,7 +355,7 @@ SR_PRIV GSList *sr_usb_find(libusb_context *usb_ctx, const char *conn) return NULL; } - if (bus > 64) { + if (bus > 255) { sr_err("Invalid bus specified: %d.", bus); return NULL; }