diff options
author | Josh Blum <josh@joshknows.com> | 2011-05-04 15:27:11 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-05-04 15:27:11 -0700 |
commit | c8dca30d72eb733d154ab9dd193631c42b8e4788 (patch) | |
tree | ded51d25f2cbdd319e28f9af906620d7efc412ff /host/lib/utils | |
parent | 94399062713a76a42f269a7ed4d3737ecd6ed5cf (diff) | |
download | uhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.tar.gz uhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.tar.bz2 uhd-c8dca30d72eb733d154ab9dd193631c42b8e4788.zip |
uhd: replaced many conditional prints with UHD_LOG usage
Diffstat (limited to 'host/lib/utils')
-rw-r--r-- | host/lib/utils/gain_group.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/utils/gain_group.cpp b/host/lib/utils/gain_group.cpp index 3af8a543d..85f4977a6 100644 --- a/host/lib/utils/gain_group.cpp +++ b/host/lib/utils/gain_group.cpp @@ -16,6 +16,7 @@ // #include <uhd/utils/gain_group.hpp> +#include <uhd/utils/log.hpp> #include <uhd/types/dict.hpp> #include <uhd/utils/algorithm.hpp> #include <uhd/exception.hpp> @@ -23,7 +24,6 @@ #include <boost/bind.hpp> #include <algorithm> #include <vector> -#include <iostream> using namespace uhd; @@ -137,11 +137,11 @@ public: gain_bucket.at(i) += additional_gain; gain_left_to_distribute -= additional_gain; } - if (verbose) std::cout << "gain_left_to_distribute " << gain_left_to_distribute << std::endl; + UHD_LOGV(often) << "gain_left_to_distribute " << gain_left_to_distribute << std::endl; //now write the bucket out to the individual gain values for (size_t i = 0; i < gain_bucket.size(); i++){ - if (verbose) std::cout << gain_bucket.at(i) << std::endl; + UHD_LOGV(often) << i << ": " << gain_bucket.at(i) << std::endl; all_fcns.at(i).set_value(gain_bucket.at(i)); } } |