diff options
author | Josh Blum <josh@joshknows.com> | 2011-05-04 20:40:36 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-05-04 20:40:36 -0700 |
commit | 9734a74366dd095256c2e2c58c5c9bcd7547f72d (patch) | |
tree | 34b169cd39dab8809937b6fc98eb57364521e61a /host/lib/device.cpp | |
parent | 09be0518cee887878f3b070adea25eccc4c06e60 (diff) | |
download | uhd-9734a74366dd095256c2e2c58c5c9bcd7547f72d.tar.gz uhd-9734a74366dd095256c2e2c58c5c9bcd7547f72d.tar.bz2 uhd-9734a74366dd095256c2e2c58c5c9bcd7547f72d.zip |
uhd: various tweaks to log and msg, replaced a few remaining stdio
Diffstat (limited to 'host/lib/device.cpp')
-rw-r--r-- | host/lib/device.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/device.cpp b/host/lib/device.cpp index 84b4d5452..c5bc047da 100644 --- a/host/lib/device.cpp +++ b/host/lib/device.cpp @@ -18,6 +18,7 @@ #include <uhd/device.hpp> #include <uhd/types/dict.hpp> #include <uhd/exception.hpp> +#include <uhd/utils/log.hpp> #include <uhd/utils/msg.hpp> #include <uhd/utils/static.hpp> #include <uhd/utils/algorithm.hpp> @@ -65,7 +66,7 @@ void device::register_device( const find_t &find, const make_t &make ){ - //std::cout << "registering device" << std::endl; + UHD_LOGV(always) << "registering device" << std::endl; get_dev_fcn_regs().push_back(dev_fcn_reg_t(find, make)); } @@ -128,7 +129,7 @@ device::sptr device::make(const device_addr_t &hint, size_t which){ device_addr_t dev_addr; make_t maker; boost::tie(dev_addr, maker) = dev_addr_makers.at(which); size_t dev_hash = hash_device_addr(dev_addr); - //std::cout << boost::format("Hash: %u") % dev_hash << std::endl; + UHD_LOG << boost::format("Device hash: %u") % dev_hash << std::endl; //copy keys that were in hint but not in dev_addr //this way, we can pass additional transport arguments |