diff options
author | Thomas Tsou | 2009-10-09 15:10:13 -0400 |
---|---|---|
committer | Thomas Tsou | 2009-10-09 15:10:13 -0400 |
commit | 665e6c8dce582e4ba02997f8b93d48c107009554 (patch) | |
tree | 52900d42625655660bcd36965c870805fefc646f /usrp/host/lib | |
parent | ee76323cc560dd3f5152408e13bf52f68e0c7954 (diff) | |
download | gnuradio-665e6c8dce582e4ba02997f8b93d48c107009554.tar.gz gnuradio-665e6c8dce582e4ba02997f8b93d48c107009554.tar.bz2 gnuradio-665e6c8dce582e4ba02997f8b93d48c107009554.zip |
usrp: Enable debug output
This only works if libusb-1.0 is compiled with debug logging.
Diffstat (limited to 'usrp/host/lib')
-rw-r--r-- | usrp/host/lib/usrp_prims_libusb1.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usrp/host/lib/usrp_prims_libusb1.cc b/usrp/host/lib/usrp_prims_libusb1.cc index e755c1d41..4e3004797 100644 --- a/usrp/host/lib/usrp_prims_libusb1.cc +++ b/usrp/host/lib/usrp_prims_libusb1.cc @@ -143,6 +143,10 @@ usrp_one_time_init (libusb_context **ctx) if ((ret = libusb_init (ctx)) < 0) fprintf (stderr, "usrp: libusb_init failed: %s\n", _get_usb_error_str(ret)); + + // Set debug verbosity to max. This will only work if the debug option is + // compiled into libusb. Otherwise this call does nothing. + libusb_set_debug(*ctx, 3); } void |