diff options
author | Martin Szulecki | 2016-07-07 11:35:22 +0200 |
---|---|---|
committer | Martin Szulecki | 2020-06-07 21:57:17 +0200 |
commit | 38844beff5f288b625720978c075600361919448 (patch) | |
tree | d4025fed270ca653eb2de16e7025988f9dfa1e9d | |
parent | 8604ed93a812e20f357d120464b0097a6a4b7020 (diff) | |
download | usbmuxd-38844beff5f288b625720978c075600361919448.tar.gz usbmuxd-38844beff5f288b625720978c075600361919448.tar.bz2 |
Use helper to show current libusb version instead of hardcoding it
-rw-r--r-- | src/usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |