libusbx v1.0.9-rc4 is now available
Xiaofan Chen
xiaofanc at gmail.com
Fri Mar 30 07:13:52 EDT 2012
Test results under OpenBSD 5.0, there are quite a few warnings.
I am okay with leaving the warnings not fixed myself.
bash-4.2$ make
make all-recursive
Making all in libusb
CC libusb_1_0_la-core.lo
CC libusb_1_0_la-descriptor.lo
CC libusb_1_0_la-io.lo
CC libusb_1_0_la-sync.lo
CC libusb_1_0_la-openbsd_usb.lo
os/openbsd_usb.c: In function 'obsd_handle_events':
os/openbsd_usb.c:487: warning: 'hpriv' may be used uninitialized in
this function
CC libusb_1_0_la-threads_posix.lo
CCLD libusb-1.0.la
Making all in doc
Making all in examples
CC listdevs.o
CCLD listdevs
CC xusb.o
xusb.c:879:2: warning: no newline at end of file
CCLD xusb
CC dpfp.o
CCLD dpfp
dpfp.o(.text+0xba3): In function `cb_img':
/home/mcuee/libusbx-1.0.9-rc4/examples/dpfp.c:229: warning: sprintf()
is often misused, please use snprintf()
CC dpfp_threaded-dpfp_threaded.o
CCLD dpfp_threaded
dpfp_threaded-dpfp_threaded.o(.text+0xafd): In function `cb_img':
/home/mcuee/libusbx-1.0.9-rc4/examples/dpfp_threaded.c:258: warning:
sprintf() is often misused, please use snprintf()
bash-4.2$ ls
AUTHORS THANKS config.status libusb
COPYING TODO config.sub libusb-1.0.pc
INSTALL aclocal.m4 configure libusb-1.0.pc.in
Makefile autogen.sh configure.ac ltmain.sh
Makefile.am compile depcomp missing
Makefile.in config.guess doc msvc
NEWS config.h examples stamp-h1
PORTING config.h.in install-sh
README config.log libtool
bash-4.2$ cd examples/
bash-4.2$ ls
Makefile dpfp_threaded.c
Makefile.am listdevs
Makefile.in listdevs.c
dpfp listdevs.o
dpfp.c xusb
dpfp.o xusb.c
dpfp_threaded xusb.o
dpfp_threaded-dpfp_threaded.o
bash-4.2$ ./listdevs
04d8:fa2e (bus 0, device 2)
bash-4.2$ ./xusb 04d8:fa2e
Opening device...
speed: Unknown
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...
Reading string descriptors:
String (0x01): "Travis Robinson"
String (0x02): "Benchmark Device"
String (0x03): "LUSBW1"
Releasing interface 0...
Closing device...
--
Xiaofan
More information about the libusbx
mailing list