aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/convert_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/convert/convert_impl.cpp')
-rw-r--r--host/lib/convert/convert_impl.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/host/lib/convert/convert_impl.cpp b/host/lib/convert/convert_impl.cpp
index d624bf970..33f88d70b 100644
--- a/host/lib/convert/convert_impl.cpp
+++ b/host/lib/convert/convert_impl.cpp
@@ -22,7 +22,6 @@
#include <uhd/exception.hpp>
#include <stdint.h>
#include <boost/format.hpp>
-#include <boost/foreach.hpp>
#include <complex>
using namespace uhd;
@@ -81,10 +80,7 @@ void uhd::convert::register_converter(
get_table()[id][prio] = fcn;
//----------------------------------------------------------------//
- UHD_LOGV(always) << "register_converter: " << id.to_pp_string() << std::endl
- << " prio: " << prio << std::endl
- << std::endl
- ;
+ UHD_LOG_TRACE("CONVERT", boost::format("register_converter: %s prio: %s") % id.to_string() % prio)
//----------------------------------------------------------------//
}
@@ -100,12 +96,11 @@ convert::function_type convert::get_converter(
//find a matching priority
priority_type best_prio = -1;
- BOOST_FOREACH(priority_type prio_i, get_table()[id].keys()){
+ for(priority_type prio_i: get_table()[id].keys()){
if (prio_i == prio) {
//----------------------------------------------------------------//
- UHD_LOGV(always) << "get_converter: For converter ID: " << id.to_pp_string() << std::endl
- << "Using prio: " << prio << std::endl
- << std::endl
+ UHD_LOGGER_DEBUG("CONVERT") << "get_converter: For converter ID: " << id.to_pp_string()
+ << " Using prio: " << prio;
;
//----------------------------------------------------------------//
return get_table()[id][prio];
@@ -118,10 +113,8 @@ convert::function_type convert::get_converter(
"Cannot find a conversion routine [with prio] for " + id.to_pp_string());
//----------------------------------------------------------------//
- UHD_LOGV(always) << "get_converter: For converter ID: " << id.to_pp_string() << std::endl
- << "Using prio: " << best_prio << std::endl
- << std::endl
- ;
+ UHD_LOGGER_DEBUG("CONVERT") << "get_converter: For converter ID: " << id.to_pp_string()
+ << " Using prio: " << best_prio;
//----------------------------------------------------------------//
//otherwise, return best prio