summaryrefslogtreecommitdiff
path: root/src/usb.c
diff options
context:
space:
mode:
authorMartin Szulecki <martin.szulecki@libimobiledevice.org>2016-07-07 11:35:22 +0200
committerMartin Szulecki <martin.szulecki@libimobiledevice.org>2020-06-07 21:57:17 +0200
commit38844beff5f288b625720978c075600361919448 (patch)
treed4025fed270ca653eb2de16e7025988f9dfa1e9d /src/usb.c
parent8604ed93a812e20f357d120464b0097a6a4b7020 (diff)
downloadusbmuxd-38844beff5f288b625720978c075600361919448.tar.gz
Use helper to show current libusb version instead of hardcoding it
Diffstat (limited to 'src/usb.c')
-rw-r--r--src/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usb.c b/src/usb.c
index 9baf933..bae5a4d 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -794,7 +794,8 @@ static int usb_hotplug_cb(libusb_context *ctx, libusb_device *device, libusb_hot
int usb_init(void)
{
int res;
- usbmuxd_log(LL_DEBUG, "usb_init for linux / libusb 1.0");
+ const struct libusb_version* libusb_version_info = libusb_get_version();
+ usbmuxd_log(LL_DEBUG, "Using libusb %d.%d", libusb_version_info->major, libusb_version_info->minor);
devlist_failures = 0;
device_polling = 1;