diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2021-09-25 16:13:42 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2021-09-25 16:13:42 +0200 |
commit | aa45292de4e9047ff38bb5da79f896709aa0293a (patch) | |
tree | 5e831df68b4283570847635f2990d5d310d5eaec | |
parent | 87393a70a6c8acd07fd9549c29d7cdd432ecd99a (diff) | |
download | libmtp-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.c | 3 |
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; } |