summaryrefslogtreecommitdiff
path: root/usrp/host/lib
diff options
context:
space:
mode:
authorThomas Tsou2009-10-09 15:10:13 -0400
committerThomas Tsou2009-10-09 15:10:13 -0400
commit665e6c8dce582e4ba02997f8b93d48c107009554 (patch)
tree52900d42625655660bcd36965c870805fefc646f /usrp/host/lib
parentee76323cc560dd3f5152408e13bf52f68e0c7954 (diff)
downloadgnuradio-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.cc4
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