diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-01-15 16:44:50 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-01-27 09:58:32 +0100 |
commit | ebe7169dcecd1b6899734cefdf5771612067fd48 (patch) | |
tree | 45d4e6cbcae1a6b8e033ff321e95658189f936db /host | |
parent | bee57ee03fd4b9dac476da7e375ddd8dcc749b1b (diff) | |
download | uhd-ebe7169dcecd1b6899734cefdf5771612067fd48.tar.gz uhd-ebe7169dcecd1b6899734cefdf5771612067fd48.tar.bz2 uhd-ebe7169dcecd1b6899734cefdf5771612067fd48.zip |
convert: Added logging point in get_converter()
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/convert/convert_impl.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/host/lib/convert/convert_impl.cpp b/host/lib/convert/convert_impl.cpp index 48eb1f8d6..fd6c8497e 100644 --- a/host/lib/convert/convert_impl.cpp +++ b/host/lib/convert/convert_impl.cpp @@ -101,7 +101,15 @@ 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()){ - if (prio_i == prio) return get_table()[id][prio]; + 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 + ; + //----------------------------------------------------------------// + return get_table()[id][prio]; + } best_prio = std::max(best_prio, prio_i); } @@ -109,6 +117,13 @@ convert::function_type convert::get_converter( if (prio != -1) throw uhd::key_error( "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 + ; + //----------------------------------------------------------------// + //otherwise, return best prio return get_table()[id][best_prio]; } |