commit | d09d341f411c94bb2835e9085122dff794716540 | [log] [tgz] |
---|---|---|
author | Lars Kanis <lars.kanis@sincnovation.com> | Thu Dec 21 11:38:56 2023 +0100 |
committer | Tormod Volden <debian.tormod@gmail.com> | Sat Jan 27 10:51:42 2024 +0100 |
tree | 2d36dda0d5798e76d6414704a1696d5677f19173 | |
parent | 0929a2b1d19c4297b10a5c5f52fee8b4e052f2ee [diff] |
core: Don't overwrite the log callback on every global libusb_set_option() But set it only on option LIBUSB_OPTION_LOG_CB. Otherwise the following second call resets the callback to the default one: libusb_set_option(NULL, LIBUSB_OPTION_LOG_CB, cb_func); libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_DEBUG); References #1397