usbtmc: Silence some overly verbose log messages.
These trigger quite often with unrelated devices and confuse people. scpi_usbtmc: Failed to get configuration descriptor: LIBUSB_ERROR_NOT_FOUND, ignoring device.
This commit is contained in:
parent
66d2cc3a27
commit
23d68466f8
|
@ -138,6 +138,7 @@ static GSList *scpi_usbtmc_libusb_scan(struct drv_context *drvc)
|
||||||
|
|
||||||
for (confidx = 0; confidx < des.bNumConfigurations; confidx++) {
|
for (confidx = 0; confidx < des.bNumConfigurations; confidx++) {
|
||||||
if ((ret = libusb_get_config_descriptor(devlist[i], confidx, &confdes)) < 0) {
|
if ((ret = libusb_get_config_descriptor(devlist[i], confidx, &confdes)) < 0) {
|
||||||
|
if (ret != LIBUSB_ERROR_NOT_FOUND)
|
||||||
sr_dbg("Failed to get configuration descriptor: %s, "
|
sr_dbg("Failed to get configuration descriptor: %s, "
|
||||||
"ignoring device.", libusb_error_name(ret));
|
"ignoring device.", libusb_error_name(ret));
|
||||||
break;
|
break;
|
||||||
|
@ -310,6 +311,7 @@ static int scpi_usbtmc_libusb_open(struct sr_scpi_dev_inst *scpi)
|
||||||
|
|
||||||
for (confidx = 0; confidx < des.bNumConfigurations; confidx++) {
|
for (confidx = 0; confidx < des.bNumConfigurations; confidx++) {
|
||||||
if ((ret = libusb_get_config_descriptor(dev, confidx, &confdes)) < 0) {
|
if ((ret = libusb_get_config_descriptor(dev, confidx, &confdes)) < 0) {
|
||||||
|
if (ret != LIBUSB_ERROR_NOT_FOUND)
|
||||||
sr_dbg("Failed to get configuration descriptor: %s, "
|
sr_dbg("Failed to get configuration descriptor: %s, "
|
||||||
"ignoring device.", libusb_error_name(ret));
|
"ignoring device.", libusb_error_name(ret));
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue