Re: [Libusbx-devel] [PATCH] Toggleable debug logging support

2012-06-01 Thread Pete Batard
On 2012.06.01 13:45, Xiaofan Chen wrote: > So this mean that LIBUSB_DEBUG=4 will have the same effect as > the previous --enable-debug-log, right? Pretty much, with the one small limitation that whereas --enable-debug-log allows debug output outside of a context having been initialized, LIBUSB_D

Re: [Libusbx-devel] [PATCH] Toggleable debug logging support

2012-06-01 Thread Xiaofan Chen
On Fri, Jun 1, 2012 at 7:44 PM, Pete Batard wrote: > With this patch, unless you use --disable-log, then all logging messages are > available, and debug logging can be turned on with either a call to > libusb_set_debug (relies on a context having been initialized, even if NULL > is passed, so MUST

[Libusbx-devel] [PATCH] Toggleable debug logging support

2012-06-01 Thread Pete Batard
Moving on on the roadmap. This patch ensures that debug logging messages are always included in the library and can be turned on or off by changing the log level. I tried to keep things simple, so this modifies the existing behaviour where debug messages were only included (and enable) with t