aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-29 17:04:33 -0700
committerMartin Braun <martin.braun@ettus.com>2018-03-30 14:22:33 -0700
commit366709c7d0fc03529066a58ec79a7f134f4407c0 (patch)
tree7b044cae960619129305b49839fc8eaac5531817 /host
parent92e49cc54f8a8c7d5137a85327a1a1dcf1187c99 (diff)
downloaduhd-366709c7d0fc03529066a58ec79a7f134f4407c0.tar.gz
uhd-366709c7d0fc03529066a58ec79a7f134f4407c0.tar.bz2
uhd-366709c7d0fc03529066a58ec79a7f134f4407c0.zip
cores: Demote some log messages in time core
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/cores/time_core_3000.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/cores/time_core_3000.cpp b/host/lib/usrp/cores/time_core_3000.cpp
index 14636edec..edec2880b 100644
--- a/host/lib/usrp/cores/time_core_3000.cpp
+++ b/host/lib/usrp/cores/time_core_3000.cpp
@@ -53,13 +53,17 @@ struct time_core_3000_impl : time_core_3000
void self_test(void)
{
const size_t sleep_millis = 100;
- UHD_LOGGER_INFO("CORES") << "Performing timer loopback test... ";
+ UHD_LOGGER_DEBUG("CORES") << "Performing timer loopback test... ";
const time_spec_t time0 = this->get_time_now();
boost::this_thread::sleep(boost::posix_time::milliseconds(sleep_millis));
const time_spec_t time1 = this->get_time_now();
const double approx_secs = (time1 - time0).get_real_secs();
const bool test_fail = (approx_secs > 0.15) or (approx_secs < 0.05);
- UHD_LOGGER_INFO("CORES") << "Timer loopback test " << ((test_fail)? "failed" : "passed");
+ if (test_fail) {
+ UHD_LOG_WARNING("CORES", "Timer loopback test failed!");
+ } else {
+ UHD_LOG_DEBUG("CORES", "Timer loopback test passed.");
+ }
//useful warning for debugging actual rate
const size_t ticks_elapsed = size_t(_tick_rate*approx_secs);