From 724eb36105474daf41939d996056582cf943177b Mon Sep 17 00:00:00 2001 From: ttsou Date: Tue, 13 Mar 2012 02:20:01 +0000 Subject: [PATCH] transceiver, uhd: output timestamps on monontonic error The "Loss of monotonic time" error occurs when a timestamp arrives from the device that is earlier in time than the previous timestamp. The output is an ALERT level message generally accompanied by a transmit side timeout from the device. UHD: Loss of monotonic time UHD: Loss of monotonic time UHD: Device send timed out Add to the error description the timestamp values that generated the error and output with ALERT rather than ERR log. Signed-off-by: Thomas Tsou git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3307 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- Transceiver52M/UHDDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index e240f7d9..d4ba5808 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -597,8 +597,8 @@ int uhd_device::check_rx_md_err(uhd::rx_metadata_t &md, ssize_t num_smpls) // Monotonicity check if (ts < prev_ts) { LOG(ALERT) << "UHD: Loss of monotonic time"; - LOG(ERR) << "UHD: Current time: " << ts.get_real_secs(); - LOG(ERR) << "UHD: Previous time: " << prev_ts.get_real_secs(); + LOG(ALERT) << "Current time: " << ts.get_real_secs() << ", " + << "Previous time: " << prev_ts.get_real_secs(); return ERROR_TIMING; } else { prev_ts = ts;