From 665e6c8dce582e4ba02997f8b93d48c107009554 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Fri, 9 Oct 2009 15:10:13 -0400 Subject: usrp: Enable debug output This only works if libusb-1.0 is compiled with debug logging. --- usrp/host/lib/usrp_prims_libusb1.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usrp/host/lib') 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 -- cgit