On Mon, May 14, 2012 at 7:50 PM, Pete Batard <p...@akeo.ie> wrote: > v2, that takes into account what was discussed previously (but still > provides get_parent). > > >From 4ff57d754aed031b8b73e161e56064338b4bd06a Mon Sep 17 00:00:00 2001
One minor thing first. The leading ">" in ">From" is automatically added by the mailing list so you can not stop it. But I am not so sure why your attachment also has the ">" before "From" which will cause "git am" to fail. Somehow xusb now segfaults sometimes. mymacmini:examples xiaofanc$ ./xusb -d 04d8:fa2e Using libusbx v1.0.11.10505 Opening device... [timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000000] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa000000 [ 0.000062] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.000073] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f9410c0e1a8 at 0x0 [ 0.000450] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa100000 [ 0.000683] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.000702] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9410c0d538 at 0x7f9410c0e110 [ 0.001142] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa110000 [ 0.189113] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa130000 [ 0.189445] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.189464] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f94128001b8 at 0x7f9410c0d4a0 [ 0.189960] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa120000 [ 0.190926] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.190947] [00000e07] libusbx: info [process_new_device] found device with address 5 port = 2 parent = 0x7f9410d01b98 at 0x7f9410c0d4a0 [ 0.191422] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa113000 [ 0.377685] [00000e07] libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device [ 0.378299] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa132000 [ 0.379102] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.379124] [00000e07] libusbx: info [process_new_device] found device with address 8 port = 2 parent = 0x7f9410c0d3e8 at 0x0 [ 0.379576] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa133000 [ 0.380383] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.380416] [00000e07] libusbx: info [process_new_device] found device with address 9 port = 3 parent = 0x7f9410d01aa8 at 0x0 [ 0.380848] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa134000 [ 0.381264] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.381280] [00000e07] libusbx: info [process_new_device] found device with address 10 port = 4 parent = 0x7f9412800278 at 0x0 [ 0.381689] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa131000 [ 0.382267] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.382291] [00000e07] libusbx: info [process_new_device] found device with address 6 port = 1 parent = 0x7f9412800da8 at 0x0 [ 0.382652] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd000000 [ 0.382688] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.382705] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f9412800488 at 0x0 [ 0.383071] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd100000 [ 0.383267] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.383285] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9412800f58 at 0x7f94128003f0 [ 0.383717] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd110000 [ 0.531335] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.531363] [00000e07] libusbx: info [process_new_device] found device with address 3 port = 1 parent = 0x7f9412800e68 at 0x7f9412800ec0 [ 0.531936] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd130000 [ 0.532537] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.532561] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f9410d01958 at 0x7f9412800ec0 [ 0.533871] [00000e07] libusbx: info [darwin_open] device open for access [ 0.534781] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa000000 [ 0.534820] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.534831] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f9412800f48 at 0x7f9412800ec0 [ 0.535225] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa100000 [ 0.535410] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.535424] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9412800488 at 0x7f9412800eb0 [ 0.535844] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa110000 [ 0.723094] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa130000 [ 0.723578] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.723594] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f9412801bf8 at 0x7f94128003f0 [ 0.723963] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa120000 [ 0.724974] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.724994] [00000e07] libusbx: info [process_new_device] found device with address 5 port = 2 parent = 0x7f9412801158 at 0x7f94128003f0 [ 0.725620] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa113000 [ 0.913276] [00000e07] libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device [ 0.913926] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa132000 [ 0.914673] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 Segmentation fault: 11 mymacmini:examples xiaofanc$ ./xusb -d 04d8:fa2e Using libusbx v1.0.11.10505 Opening device... [timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000000] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa000000 [ 0.000086] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.000102] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f91135052e8 at 0x0 [ 0.000571] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa100000 [ 0.000726] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.000748] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9113505098 at 0x7f9113505250 [ 0.001390] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa110000 [ 0.188034] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa130000 [ 0.188384] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.188404] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f911340a6f8 at 0x7f9113505000 [ 0.188842] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa120000 [ 0.189891] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.189908] [00000e07] libusbx: info [process_new_device] found device with address 5 port = 2 parent = 0x7f9113504568 at 0x7f9113505000 [ 0.190379] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa113000 [ 0.375749] [00000e07] libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device [ 0.376534] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa132000 [ 0.377231] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.377251] [00000e07] libusbx: info [process_new_device] found device with address 8 port = 2 parent = 0x7f9115000098 at 0x0 [ 0.377699] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa133000 [ 0.378469] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.378485] [00000e07] libusbx: info [process_new_device] found device with address 9 port = 3 parent = 0x7f91135040d8 at 0x0 [ 0.378964] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa134000 [ 0.379227] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.379245] [00000e07] libusbx: info [process_new_device] found device with address 10 port = 4 parent = 0x7f9113504628 at 0x0 [ 0.379733] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa131000 [ 0.380237] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.380257] [00000e07] libusbx: info [process_new_device] found device with address 6 port = 1 parent = 0x7f9113504f88 at 0x0 [ 0.380831] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd000000 [ 0.380890] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.380915] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f91150002f8 at 0x0 [ 0.381483] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd100000 [ 0.381748] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.381763] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f91150001e8 at 0x7f9115000260 [ 0.382208] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd110000 [ 0.529162] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.529193] [00000e07] libusbx: info [process_new_device] found device with address 3 port = 1 parent = 0x7f91150003b8 at 0x7f9115000150 [ 0.529748] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd130000 [ 0.530265] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.530287] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f91135057e8 at 0x7f9115000150 [ 0.532193] [00000e07] libusbx: info [darwin_open] device open for access [ 0.533643] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa000000 [ 0.533709] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.533725] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f91150001a8 at 0x0 [ 0.534272] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa100000 [ 0.534474] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.534492] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9115000378 at 0x7f9115000110 [ 0.535029] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa110000 [ 0.721739] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa130000 [ 0.722096] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.722114] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f91135052e8 at 0x7f91150002e0 [ 0.722557] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa120000 [ 0.723608] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.723629] [00000e07] libusbx: info [process_new_device] found device with address 5 port = 2 parent = 0x7f9115001038 at 0x7f91150002e0 [ 0.724244] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa113000 [ 0.909504] [00000e07] libusbx: warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8281: device not responding. skipping device [ 0.910093] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa132000 [ 0.910852] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.910873] [00000e07] libusbx: info [process_new_device] found device with address 8 port = 2 parent = 0x7f9113505048 at 0x0 [ 0.911314] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa133000 [ 0.912095] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.912111] [00000e07] libusbx: info [process_new_device] found device with address 9 port = 3 parent = 0x7f91135040d8 at 0x0 [ 0.912574] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfa134000 [ 0.912984] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.913005] [00000e07] libusbx: info [process_new_device] found device with address 10 port = 4 parent = 0x7f91135054c8 at 0x0 [ 0.913619] [00000e07] libusbx: info [process_new_device] using existing device for location 0xfa131000 [ 0.914084] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.914101] [00000e07] libusbx: info [process_new_device] found device with address 6 port = 1 parent = 0x7f9113504f88 at 0x0 [ 0.914504] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd000000 [ 0.914556] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.914570] [00000e07] libusbx: info [process_new_device] found device with address 1 port = 0 parent = 0x7f9113505588 at 0x0 [ 0.915007] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd100000 [ 0.915226] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 0.915246] [00000e07] libusbx: info [process_new_device] found device with address 2 port = 1 parent = 0x7f9113505648 at 0x7f91135054f0 [ 0.915816] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd110000 [ 1.062725] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 1.062752] [00000e07] libusbx: info [process_new_device] found device with address 3 port = 1 parent = 0x7f91150010f8 at 0x7f91135055b0 [ 1.063298] [00000e07] libusbx: info [process_new_device] allocating new device for location 0xfd130000 [ 1.063856] [00000e07] libusbx: info [darwin_check_configuration] active config: 1, first config: 1 [ 1.063879] [00000e07] libusbx: info [process_new_device] found device with address 4 port = 3 parent = 0x7f91135062b8 at 0x7f91135055b0 bus: 250, port path from HCD: 1 speed: 12 Mbit/s (USB 1.0 FullSpeed) Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 04D8:FA2E bcdDevice: 0001 iMan:iProd:iSer: 1:2:3 nb confs: 1 Reading configuration descriptors: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: 00.00.00 endpoint[0].address: 01 max packet size: 0020 polling interval: 00 endpoint[1].address: 81 max packet size: 0020 polling interval: 00 interface[0].altsetting[1]: num endpoints = 2 Class.SubClass.Protocol: 00.00.00 endpoint[0].address: 01 max packet size: 0040 polling interval: 00 endpoint[1].address: 81 max packet size: 0040 polling interval: 00 Claiming interface 0... [ 1.064780] [00000e07] libusbx: info [get_endpoints] building table of endpoints. [ 1.064810] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe 1: dir: 0 number: 1 [ 1.064827] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe 2: dir: 1 number: 1 [ 1.064881] [00000e07] libusbx: info [darwin_claim_interface] interface opened Reading string descriptors: [ 1.065170] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.065208] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.065225] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.065240] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 1.065791] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.065822] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.065839] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.065853] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 String (0x01): "Travis Robinson" [ 1.066165] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.066195] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.066212] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.066226] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 1.066789] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.066818] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.066834] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.066849] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 String (0x02): "Benchmark Device" [ 1.067165] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.067194] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.067210] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.067224] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 1.067664] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.067693] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.067709] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.067723] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 String (0x03): "LUSBW1" [ 1.068039] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.068068] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.068084] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.068098] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status 0 [ 1.068299] [00001707] libusbx: info [darwin_async_io_callback] an async io operation has completed [ 1.068331] [00000e07] libusbx: info [op_handle_events] checking fd 4 with revents = 0 [ 1.068342] [00000e07] libusbx: info [op_handle_events] checking fd 6 with revents = 1 [ 1.068355] [00000e07] libusbx: info [darwin_handle_callback] handling control completion with kernel status -536854449 [ 1.068364] [00000e07] libusbx: warning [darwin_transfer_status] transfer error: pipe is stalled Releasing interface 0... Closing device... [ 1.069927] [00001707] libusbx: info [event_thread_main] thread exiting -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel