libusbx v1.0.9-rc4 is now available
Xiaofan Chen
xiaofanc at gmail.com
Fri Mar 30 09:08:33 EDT 2012
On Fri, Mar 30, 2012 at 8:49 PM, Pete Batard <pete at akeo.ie> wrote:
> On 2012.03.30 10:34, Xiaofan Chen wrote:
>>
>> First test is carried out under Mac OS X.
>>
>> 1) one compiler warning, better fix
>
> I think the attached patch should address it. If you have a chance to test
> and confirm, that'd be great. I don't have a 64 bit OS X platform to test
> with, so I don't think I can reproduce that one.
Yes the patch is okay, no more warnings under Mac OS X Lion
(64bit).
>> 2) not so sure why xusb example default to debug log mode.
>
>> libusb:info [process_new_device] allocating new device for location
>> 0xfa000000
>> libusb:info [darwin_check_configuration] active config: 1, first config: 1
>> libusb:info [process_new_device] found device with address 1 at
>> 001-05ac-8006-09-00
>> libusb:info [process_new_device] allocating new device for location
>> 0xfa100000
>> libusb:info [darwin_check_configuration] active config: 1, first config: 1
>> libusb:info [process_new_device] found device with address 2 at
>
>
> Looks to me like you are getting info messages, which is unrelated to
> enabling debug. I don't think these messages should be info, as there are
> quite a lot of them. May want to fix that for 1.0.10. I just logged trac
> issue #1 against this (so that we can test trac as well).
>
On the other hand, I think it is better to fix xusb not to use
debug level 3 as default.
Just change line 871-872 should be good to go.
#871 // Info = 3, Debug = 4
#872 libusb_set_debug(NULL, debug_mode?4:3);
Just change to the following and it will be fine.
// Debug = 4
libusb_set_debug(NULL, debug_mode?4:0);
--
Xiaofan
More information about the libusbx
mailing list