summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
800 devlist_failures = 0; 800 devlist_failures = 0;
801 device_polling = 1; 801 device_polling = 1;
802 res = libusb_init(NULL); 802 res = libusb_init(NULL);
803 //libusb_set_debug(NULL, 3); 803
804 libusb_set_debug(NULL, (log_level >= LL_DEBUG ? LIBUSB_LOG_LEVEL_DEBUG: (log_level >= LL_WARNING ? LIBUSB_LOG_LEVEL_WARNING: LIBUSB_LOG_LEVEL_NONE)));
805
804 if(res != 0) { 806 if(res != 0) {
805 usbmuxd_log(LL_FATAL, "libusb_init failed: %d", res); 807 usbmuxd_log(LL_FATAL, "libusb_init failed: %d", res);
806 return -1; 808 return -1;