diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-15 12:40:37 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-15 12:40:37 -0700 |
commit | 2e978d8835b8f954b7c34c42138b64d3a5767f81 (patch) | |
tree | 22a6c6c94afa59697249fbc641cf398fe6c0b110 /host/lib/usrp/usrp1/codec_ctrl.cpp | |
parent | a8a4d6c0c81cdb7d7577b9e696a18580717d0324 (diff) | |
download | uhd-2e978d8835b8f954b7c34c42138b64d3a5767f81.tar.gz uhd-2e978d8835b8f954b7c34c42138b64d3a5767f81.tar.bz2 uhd-2e978d8835b8f954b7c34c42138b64d3a5767f81.zip |
usrp1: compiling off next branch
made usb checking changes
implemented named_prop_t::extract change
copied the remainder of the codec pga gain control
Diffstat (limited to 'host/lib/usrp/usrp1/codec_ctrl.cpp')
-rw-r--r-- | host/lib/usrp/usrp1/codec_ctrl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/codec_ctrl.cpp b/host/lib/usrp/usrp1/codec_ctrl.cpp index 866650c2c..d0576a769 100644 --- a/host/lib/usrp/usrp1/codec_ctrl.cpp +++ b/host/lib/usrp/usrp1/codec_ctrl.cpp @@ -25,12 +25,12 @@ #include <uhd/utils/algorithm.hpp> #include <uhd/utils/byteswap.hpp> #include <boost/cstdint.hpp> +#include <boost/format.hpp> #include <boost/tuple/tuple.hpp> #include <boost/math/special_functions/round.hpp> #include <boost/assign/list_of.hpp> #include <iostream> #include <iomanip> -#include <cstdio> using namespace uhd; @@ -335,9 +335,9 @@ unsigned int usrp1_codec_ctrl_impl::compute_freq_control_word_9862( int v = (int) rint (fabs (target_freq) / master_freq * pow (2.0, 24.0)); *actual_freq = v * master_freq / pow (2.0, 24.0) * sign; - fprintf(stdout, - "compute_freq_control_word_9862: target = %g actual = %g delta = %g v = %8d\n", - target_freq, *actual_freq, *actual_freq - target_freq, v); + std::cout << boost::format( + "compute_freq_control_word_9862: target = %g actual = %g delta = %g v = %8d\n" + ) % target_freq % *actual_freq % (*actual_freq - target_freq) % v; return (unsigned int) v; } |