On Sun, May 6, 2012 at 11:55 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>
> This is what I have under OpenBSD and I think it looks fine.
>

Similar for NetBSD (6.0 Beta).

bash-4.2$ ./listdevs
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [ffffffff] libusbx: debug [libusb_init]
[ 0.002542] [ffffffff] libusbx: debug [usbi_add_pollfd] add fd 3 events 1
[ 0.002550] [ffffffff] libusbx: debug [libusb_init] created default context
[ 0.002559] [ffffffff] libusbx: debug [libusb_get_device_list]
[ 0.002563] [ffffffff] libusbx: debug [obsd_get_device_list]
[ 0.002824] [ffffffff] libusbx: debug [_cache_active_config_descriptor] fd 5
[ 0.002875] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] active bLength 9
[ 0.002921] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] index -1, len 63
[ 0.002966] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
[ 0.003436] [ffffffff] libusbx: debug [libusb_get_device_descriptor]
[ 0.003475] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
04d8:fa2e (bus 0, device 2)
[ 0.003522] [ffffffff] libusbx: debug [libusb_exit]
[ 0.003551] [ffffffff] libusbx: debug [libusb_exit] destroying default context
[ 0.003591] [ffffffff] libusbx: debug [usbi_remove_pollfd] remove fd 3

bash-4.2$ ./xusb -d 04d8:fa2e
Using libusbx v1.0.10.10492

[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [ffffffff] libusbx: debug [libusb_init]
[ 0.000041] [ffffffff] libusbx: debug [usbi_add_pollfd] add fd 3 events 1
[ 0.000049] [ffffffff] libusbx: debug [libusb_init] created default context
Opening device...
[ 0.000069] [ffffffff] libusbx: debug [libusb_get_device_list]
[ 0.000073] [ffffffff] libusbx: debug [obsd_get_device_list]
[ 0.000309] [ffffffff] libusbx: debug [_cache_active_config_descriptor] fd 5
[ 0.000359] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] active bLength 9
[ 0.000405] [ffffffff] libusbx: debug
[_cache_active_config_descriptor] index -1, len 63
[ 0.000450] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
[ 0.000762] [ffffffff] libusbx: debug [libusb_get_device_descriptor]
[ 0.000795] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
[ 0.000826] [ffffffff] libusbx: debug [libusb_open] open 0.2
[ 0.000879] [ffffffff] libusbx: debug [obsd_open] open /dev/ugen0.00: fd 5
[ 0.000926] [ffffffff] libusbx: debug [usbi_add_pollfd] add fd 6 events 1
speed: 12 Mbit/s (USB 1.0 FullSpeed)

Reading device descriptor:
[ 0.001051] [ffffffff] libusbx: debug [libusb_get_device_descriptor]
[ 0.001105] [ffffffff] libusbx: debug [obsd_get_device_descriptor]
            length: 18
      device class: 239
               S/N: 3
           VID:PID: 04D8:FA2E
         bcdDevice: 0001
   iMan:iProd:iSer: 1:2:3
          nb confs: 1

Reading configuration descriptors:
[ 0.001260] [ffffffff] libusbx: debug [libusb_get_config_descriptor] index 0
[ 0.001304] [ffffffff] libusbx: debug [obsd_get_config_descriptor]
index 0, len 8
[ 0.006563] [ffffffff] libusbx: debug [obsd_get_config_descriptor]
index 0, len 63
[ 0.012183] [ffffffff] libusbx: debug [parse_configuration] skipping
descriptor 0xb

             nb interfaces: 2
              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[1]: id = 1
interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 02
           max packet size: 0020
          polling interval: 00
       endpoint[1].address: 82
           max packet size: 0020
          polling interval: 00

Claiming interface 0...
[ 0.012538] [ffffffff] libusbx: debug [libusb_claim_interface] interface 0

Claiming interface 1...
[ 0.018989] [ffffffff] libusbx: debug [libusb_claim_interface] interface 1

Reading string descriptors:
[ 0.019010] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.019019] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.019023] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 768 index 0 length 255 timeout 1000
[ 0.021825] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 4
[ 0.021900] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.021939] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.021980] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.022019] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 998ms
[ 0.022061] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.022099] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.022126] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.022163] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=4
[ 0.022205] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.022244] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.022270] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 769 index 1033 length 255 timeout 1000
[ 0.024367] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 32
[ 0.024427] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.024466] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.024504] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.024541] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 998ms
[ 0.024579] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.024615] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.024641] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.024679] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=32
   String (0x01): "Travis Robinson"
[ 0.024732] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.024769] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.024795] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 768 index 0 length 255 timeout 1000
[ 0.027206] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 4
[ 0.027263] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.027301] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.027339] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.027376] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 998ms
[ 0.027413] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.027449] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.027475] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.027513] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=4
[ 0.027551] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.027589] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.027613] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 770 index 1033 length 255 timeout 1000
[ 0.030274] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 44
[ 0.030333] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.030371] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.030432] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.030471] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 998ms
[ 0.030509] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.030546] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.030572] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.030593] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=44
   String (0x02): "Dual Benchmark Device"
[ 0.030604] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.030609] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.030613] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 768 index 0 length 255 timeout 1000
[ 0.033514] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 4
[ 0.033527] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.033533] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.033538] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.033543] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 998ms
[ 0.033549] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.033554] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.033558] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.053595] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=4
[ 0.053642] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.053649] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.053653] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 771 index 1033 length 255 timeout 1000
[ 0.060948] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 14
[ 0.060976] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.060982] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.060988] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.060993] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 993ms
[ 0.061000] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.061004] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.061009] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.061014] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=14
   String (0x03): "LUSBW2"
[ 0.061026] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.061031] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.061034] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 768 index 0 length 255 timeout 1000
[ 0.067463] [ffffffff] libusbx: debug [_sync_control_transfer] transferred 4
[ 0.067553] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.067591] [ffffffff] libusbx: debug [libusb_get_next_timeout] next
timeout in 0.000000s
[ 0.067629] [ffffffff] libusbx: debug
[libusb_handle_events_timeout_completed] doing our own event handling
[ 0.067667] [ffffffff] libusbx: debug [handle_events] poll() 2 fds
with timeout in 994ms
[ 0.067705] [ffffffff] libusbx: debug [handle_events] poll() returned 1
[ 0.067741] [ffffffff] libusbx: debug [obsd_handle_events]
[ 0.067767] [ffffffff] libusbx: debug
[usbi_handle_transfer_completion] transfer 0xbb90912c has callback
0xbbbe137f
[ 0.067804] [ffffffff] libusbx: debug [ctrl_transfer_cb] actual_length=4
[ 0.067844] [ffffffff] libusbx: debug [obsd_clock_gettime] clock 0
[ 0.067881] [ffffffff] libusbx: debug [obsd_submit_transfer]
[ 0.067906] [ffffffff] libusbx: debug [_sync_control_transfer] type
128 request 6 value 1006 index 1033 length 255 timeout 1000

Releasing interface 0...
[ 0.072494] [ffffffff] libusbx: debug [libusb_release_interface] interface 0
Releasing interface 1...
[ 0.072546] [ffffffff] libusbx: debug [libusb_release_interface] interface 1
Closing device...
[ 0.072596] [ffffffff] libusbx: debug [libusb_close]
[ 0.072625] [ffffffff] libusbx: debug [obsd_close] close: fd 5
[ 0.072670] [ffffffff] libusbx: debug [usbi_remove_pollfd] remove fd 6
[ 0.072713] [ffffffff] libusbx: debug [libusb_exit]
[ 0.072739] [ffffffff] libusbx: debug [libusb_exit] destroying default context
[ 0.072775] [ffffffff] libusbx: debug [usbi_remove_pollfd] remove fd 3



-- 
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

Reply via email to