From: Pete B. <pb...@gm...> - 2010-04-06 20:18:57
|
All, With people starting to use the Windows binary releases, I'd like to produce libusb binaries that have the debug information available (usbi_dbg) but where debug output is only produced when requested (eg, through a debug option in xusb), preferably through a general call to libusb_set_debug(). The problem: - With ENABLE_DEBUG_LOGGING on in config.h, usbi_dbg() prints debug info always, and it is not possible to turn the debug messages off. - With ENABLE_DEBUG_LOGGING off, libusbi.h defines usbi_dbg() to an empty call, and therefore it is not possible to get debug info ever. To address that issue, I have added a --enabled-toggable-debug option to configure, as well as the required modifications to core, in r243. You can review the changes at: http://git.libusb.org/?p=libusb-pbatard.git;a=commitdiff;h=a7a96927a30094f308ad00bf2af4532e765c05e0 This allows the possibility of enabling debugging messages on the fly in libusb apps. Regards, /Pete |