diff options
author | Jason Abele <jason@ettus.com> | 2010-05-04 17:13:44 -0700 |
---|---|---|
committer | Jason Abele <jason@ettus.com> | 2010-05-04 17:13:44 -0700 |
commit | ad0eb1dcb0e19936d55a7f7f0ab1334a040fb059 (patch) | |
tree | 11f5fa1ef47061a5e3247a7843ced8ad845681df | |
parent | db59e22feef9597b258d365ad4e0e5859257172b (diff) | |
download | uhd-ad0eb1dcb0e19936d55a7f7f0ab1334a040fb059.tar.gz uhd-ad0eb1dcb0e19936d55a7f7f0ab1334a040fb059.tar.bz2 uhd-ad0eb1dcb0e19936d55a7f7f0ab1334a040fb059.zip |
Fixed unguarded debug message
-rw-r--r-- | host/lib/usrp/dboard/db_wbx.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_wbx.cpp b/host/lib/usrp/dboard/db_wbx.cpp index 788099a90..b4aaf587c 100644 --- a/host/lib/usrp/dboard/db_wbx.cpp +++ b/host/lib/usrp/dboard/db_wbx.cpp @@ -375,13 +375,15 @@ double wbx_xcvr::set_lo_freq( //actual frequency calculation actual_freq = double((N + (double(FRAC)/double(MOD)))*ref_freq*(1+int(D))/(R*(1+int(T)))/RFdiv/2); - std::cerr << boost::format("WBX Intermediates: ref=%0.2f, outdiv=%f, fbdiv=%f") % (ref_freq*(1+int(D))/(R*(1+int(T)))) % double(RFdiv*2) % double(N + double(FRAC)/double(MOD)) << std::endl; - if (wbx_debug) std::cerr - << boost::format("WBX tune: R=%d, BS=%d, N=%d, FRAC=%d, MOD=%d, T=%d, D=%d, RFdiv=%d, LD=%d" + if (wbx_debug) { + std::cerr << boost::format("WBX Intermediates: ref=%0.2f, outdiv=%f, fbdiv=%f") % (ref_freq*(1+int(D))/(R*(1+int(T)))) % double(RFdiv*2) % double(N + double(FRAC)/double(MOD)) << std::endl; + + std::cerr << boost::format("WBX tune: R=%d, BS=%d, N=%d, FRAC=%d, MOD=%d, T=%d, D=%d, RFdiv=%d, LD=%d" ) % R % BS % N % FRAC % MOD % T % D % RFdiv % get_locked(unit)<< std::endl << boost::format("WBX Frequencies (MHz): REQ=%0.2f, ACT=%0.2f, VCO=%0.2f, PFD=%0.2f, BAND=%0.2f" ) % (target_freq/1e6) % (actual_freq/1e6) % (vco_freq/1e6) % (pfd_freq/1e6) % (pfd_freq/BS/1e6) << std::endl; + } //load the register values adf4350_regs_t regs; |