summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usb.c b/src/usb.c
index bae5a4d..7b78b02 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -800,7 +800,9 @@ int usb_init(void)
devlist_failures = 0;
device_polling = 1;
res = libusb_init(NULL);
- //libusb_set_debug(NULL, 3);
+
+ libusb_set_debug(NULL, (log_level >= LL_DEBUG ? LIBUSB_LOG_LEVEL_DEBUG: (log_level >= LL_WARNING ? LIBUSB_LOG_LEVEL_WARNING: LIBUSB_LOG_LEVEL_NONE)));
+
if(res != 0) {
usbmuxd_log(LL_FATAL, "libusb_init failed: %d", res);
return -1;