aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-28 22:13:31 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-05-25 17:14:43 +0200
commit1a090b698c4f6a065a5eac3e8ba32906bd25589c (patch)
tree45616cb92160e99f012178d24252656d1b67bbc7
parentc01ddf5ff3bf0fc4a278f3b60ee27ded3e327560 (diff)
LMSDevice: Reduce Rx logging verbosity: Only log unexpected timestamps
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 5f25da5..2a40f46 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -483,7 +483,8 @@ int LMSDevice::readSamples(std::vector < short *>&bufs, int len, bool * overrun,
for (i = 0; i<chans; i++) {
thread_enable_cancel(false);
rc = LMS_RecvStream(&m_lms_stream_rx[i], bufs[i], len, &rx_metadata, 100);
- LOG(ALERT) << "chan "<< i << " recv buffer of len " << rc << " expect " << std::hex << timestamp << " got " << std::hex << (TIMESTAMP)rx_metadata.timestamp << " (" << std::hex << rx_metadata.timestamp <<") diff=" << rx_metadata.timestamp - timestamp;
+ if (timestamp != (TIMESTAMP)rx_metadata.timestamp)
+ LOG(ALERT) << "chan "<< i << " recv buffer of len " << rc << " expect " << std::hex << timestamp << " got " << std::hex << (TIMESTAMP)rx_metadata.timestamp << " (" << std::hex << rx_metadata.timestamp <<") diff=" << rx_metadata.timestamp - timestamp;
if (rc != len) {
LOG(ALERT) << "LMS: Device receive timed out";
}