From: Bert Vermeulen Date: Wed, 16 Jul 2014 23:06:13 +0000 (+0200) Subject: scpi/usbtmc: Minor debug output changes. X-Git-Tag: libsigrok-0.4.0~1054 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e82d34a9c230afb06c429f09fbff404299837e75;p=libsigrok.git scpi/usbtmc: Minor debug output changes. --- diff --git a/src/scpi/scpi_usbtmc_libusb.c b/src/scpi/scpi_usbtmc_libusb.c index c4470b5d..535ce54b 100644 --- a/src/scpi/scpi_usbtmc_libusb.c +++ b/src/scpi/scpi_usbtmc_libusb.c @@ -213,9 +213,8 @@ static int scpi_usbtmc_libusb_open(void *priv) intfdes->bInterfaceProtocol != USBTMC_USB488) continue; uscpi->interface = intfdes->bInterfaceNumber; - sr_dbg("Interface %d", uscpi->interface); config = confdes->bConfigurationValue; - sr_dbg("Configuration %d", config); + sr_dbg("Interface %d configuration %d.", uscpi->interface, config); for (epidx = 0; epidx < intfdes->bNumEndpoints; epidx++) { ep = &intfdes->endpoint[epidx]; if (ep->bmAttributes == LIBUSB_TRANSFER_TYPE_BULK && @@ -226,12 +225,12 @@ static int scpi_usbtmc_libusb_open(void *priv) if (ep->bmAttributes == LIBUSB_TRANSFER_TYPE_BULK && ep->bEndpointAddress & (LIBUSB_ENDPOINT_DIR_MASK)) { uscpi->bulk_in_ep = ep->bEndpointAddress; - sr_dbg("Bulk IN EP %d", uscpi->bulk_in_ep); + sr_dbg("Bulk IN EP %d", uscpi->bulk_in_ep & 0x7f); } if (ep->bmAttributes == LIBUSB_TRANSFER_TYPE_INTERRUPT && ep->bEndpointAddress & (LIBUSB_ENDPOINT_DIR_MASK)) { uscpi->interrupt_ep = ep->bEndpointAddress; - sr_dbg("Interrupt EP %d", uscpi->interrupt_ep); + sr_dbg("Interrupt EP %d", uscpi->interrupt_ep & 0x7f); } } found = 1;