X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fusb.c;h=35a3e80ed58cc7d340317b1aeea116ba4d1f2d83;hb=bee2b0168c087676c1b365861d8c2d4714afa9b9;hp=02510caed4edca7293410788156521d35be81e61;hpb=e4ce146fefe7cfd475b9d8fdec1101b188b746db;p=libsigrok.git diff --git a/src/usb.c b/src/usb.c index 02510cae..35a3e80e 100644 --- a/src/usb.c +++ b/src/usb.c @@ -28,7 +28,7 @@ #include "libsigrok-internal.h" /* SR_CONF_CONN takes one of these: */ -#define CONN_USB_VIDPID "^([0-9a-z]{4})\\.([0-9a-z]{4})$" +#define CONN_USB_VIDPID "^([0-9a-fA-F]{4})\\.([0-9a-fA-F]{4})$" #define CONN_USB_BUSADDR "^(\\d+)\\.(\\d+)$" #define LOG_PREFIX "usb" @@ -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.");