aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_zero_copy.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-05-04 15:27:11 -0700
committerJosh Blum <josh@joshknows.com>2011-05-04 15:27:11 -0700
commitc8dca30d72eb733d154ab9dd193631c42b8e4788 (patch)
treeded51d25f2cbdd319e28f9af906620d7efc412ff /host/lib/transport/libusb1_zero_copy.cpp
parent94399062713a76a42f269a7ed4d3737ecd6ed5cf (diff)
downloaduhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.tar.gz
uhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.tar.bz2
uhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.zip
uhd: replaced many conditional prints with UHD_LOG usage
Diffstat (limited to 'host/lib/transport/libusb1_zero_copy.cpp')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index ec2077d30..d4cfab422 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -20,13 +20,13 @@
#include <uhd/transport/bounded_buffer.hpp>
#include <uhd/transport/buffer_pool.hpp>
#include <uhd/utils/thread_priority.hpp>
+#include <uhd/utils/log.hpp>
#include <uhd/exception.hpp>
#include <boost/function.hpp>
#include <boost/foreach.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/barrier.hpp>
#include <list>
-#include <iostream>
using namespace uhd;
using namespace uhd::transport;
@@ -52,7 +52,7 @@ static void LIBUSB_CALL libusb_async_cb(libusb_transfer *lut){
//! callback to free transfer upon cancellation
static void LIBUSB_CALL cancel_transfer_cb(libusb_transfer *lut){
if (lut->status == LIBUSB_TRANSFER_CANCELLED) libusb_free_transfer(lut);
- else std::cout << "libusb cancel_transfer unexpected status " << lut->status << std::endl;
+ else UHD_LOGV(rarely) << "libusb cancel_transfer unexpected status " << lut->status << std::endl;
}
/***********************************************************************