summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2021-09-25 16:13:42 +0200
committerMarcus Meissner <marcus@jet.franken.de>2021-09-25 16:13:42 +0200
commitaa45292de4e9047ff38bb5da79f896709aa0293a (patch)
tree5e831df68b4283570847635f2990d5d310d5eaec
parent87393a70a6c8acd07fd9549c29d7cdd432ecd99a (diff)
downloadlibmtp-aa45292de4e9047ff38bb5da79f896709aa0293a.tar.gz
replace deprecated libuzsb_set_debug by libusb_set_option(libmtp_libusb_context, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_DEBUG );
-rw-r--r--src/libusb1-glue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libusb1-glue.c b/src/libusb1-glue.c
index 5a35a45..a624159 100644
--- a/src/libusb1-glue.c
+++ b/src/libusb1-glue.c
@@ -163,7 +163,8 @@ static LIBMTP_error_number_t init_usb()
libusb1_initialized = 1;
if ((LIBMTP_debug & LIBMTP_DEBUG_USB) != 0)
- libusb_set_debug(libmtp_libusb_context,9);
+ /*libusb_set_debug(libmtp_libusb_context,9);*/
+ libusb_set_option(libmtp_libusb_context, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_DEBUG ); /* highest level */
return LIBMTP_ERROR_NONE;
}