Skip to content

Commit

Permalink
usb: be more verbose when unable to claim an interface
Browse files Browse the repository at this point in the history
This added the entire usb interface (bus and address) in the error message, which was not there.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz authored and commodo committed Oct 29, 2018
1 parent 686ced9 commit 876db45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ struct iio_context * usb_create_context(unsigned int bus,
ret = libusb_claim_interface(hdl, interface);
if (ret) {
ret = -(int) libusb_to_errno(ret);
ERROR("Unable to claim interface %u: %i\n", interface, ret);
ERROR("Unable to claim interface %u:%u:%u: %i\n",
bus, address, interface, ret);
goto err_libusb_close;
}

Expand Down

0 comments on commit 876db45

Please sign in to comment.