diff options
author | Mark Meserve <mark.meserve@ni.com> | 2019-04-15 15:49:08 -0500 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2019-05-21 17:20:42 -0700 |
commit | 170172d101ffd83908dbba4aab9fe81400ca85d8 (patch) | |
tree | becc1c8569d8acfa0e6d3450305cfbee0329eaea /host/lib | |
parent | d82696b4121f399628c949946ce8e4a612b53b55 (diff) | |
download | uhd-170172d101ffd83908dbba4aab9fe81400ca85d8.tar.gz uhd-170172d101ffd83908dbba4aab9fe81400ca85d8.tar.bz2 uhd-170172d101ffd83908dbba4aab9fe81400ca85d8.zip |
adf435x: enhance logging messages
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/include/uhdlib/usrp/common/adf435x.hpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/adf435x.hpp b/host/lib/include/uhdlib/usrp/common/adf435x.hpp index bd7b91b95..f6ce26e51 100644 --- a/host/lib/include/uhdlib/usrp/common/adf435x.hpp +++ b/host/lib/include/uhdlib/usrp/common/adf435x.hpp @@ -324,16 +324,19 @@ public: adf435x_regs_t::LDF_INT_N : adf435x_regs_t::LDF_FRAC_N; - std::string tuning_str = (int_n_mode) ? "Integer-N" : "Fractional"; - UHD_LOGGER_TRACE("ADF435X") - << boost::format("ADF 435X Frequencies (MHz): REQUESTED=%0.9f, ACTUAL=%0.9f") - % (target_freq/1e6) % (actual_freq/1e6) - << boost::format("ADF 435X Intermediates (MHz): Feedback=%0.2f, VCO=%0.2f, PFD=%0.2f, BAND=%0.2f, REF=%0.2f") - % (feedback_freq/1e6) % (vco_freq/1e6) % (pfd_freq/1e6) % (pfd_freq/BS/1e6) % (_reference_freq/1e6) - << boost::format("ADF 435X Tuning: %s") % tuning_str.c_str() - << boost::format("ADF 435X Settings: R=%d, BS=%d, N=%d, FRAC=%d, MOD=%d, T=%d, D=%d, RFdiv=%d") - % R % BS % N % FRAC % MOD % T % D % RFdiv - ; + // clang-format off + UHD_LOG_TRACE("ADF435X", boost::format( + "ADF 435X Frequencies (MHz): REQUESTED=%0.9f, ACTUAL=%0.9f") + % (target_freq / 1e6) % (actual_freq / 1e6)); + UHD_LOG_TRACE("ADF435X", boost::format( + "ADF 435X Intermediates (MHz): Feedback=%0.2f, VCO=%0.2f, PFD=%0.2f, BAND=%0.2f, REF=%0.2f") + % (feedback_freq / 1e6) % (vco_freq / 1e6) % (pfd_freq / 1e6) % (pfd_freq / BS / 1e6) % (_reference_freq / 1e6)); + UHD_LOG_TRACE("ADF435X", + "ADF 435X Tuning: " << ((int_n_mode) ? "Integer-N" : "Fractional")); + UHD_LOG_TRACE("ADF435X", boost::format( + "ADF 435X Settings: R=%d, BS=%d, N=%d, FRAC=%d, MOD=%d, T=%d, D=%d, RFdiv=%d") + % R % BS % N % FRAC % MOD % T % D % RFdiv); + // clang-format on UHD_ASSERT_THROW((_regs.frac_12_bit & ((uint16_t)~0xFFF)) == 0); UHD_ASSERT_THROW((_regs.mod_12_bit & ((uint16_t)~0xFFF)) == 0); |