Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/9609


Change subject: LMSDevice: Reduce Rx logging verbosity: Only log unexpected 
timestamps
......................................................................

LMSDevice: Reduce Rx logging verbosity: Only log unexpected timestamps

Change-Id: I06b35efb7368616b9f4d348da574cd524ffe3ea6
---
M Transceiver52M/device/lms/LMSDevice.cpp
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/09/9609/1

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 @@
        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";
                }

--
To view, visit https://gerrit.osmocom.org/9609
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I06b35efb7368616b9f4d348da574cd524ffe3ea6
Gerrit-Change-Number: 9609
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Pau Espin Pedrol <pes...@sysmocom.de>

Reply via email to