Change in osmo-trx[master]: lms: Log underrun/overrun events

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Apr 26 16:51:16 UTC 2019


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/13786 )

Change subject: lms: Log underrun/overrun events
......................................................................

lms: Log underrun/overrun events

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

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 0cd41d3..d0c8e19 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -573,12 +573,20 @@
 {
 	lms_stream_status_t status;
 	if (LMS_GetStreamStatus(&m_lms_stream_rx[chan], &status) == 0) {
-		if (status.underrun > m_last_rx_underruns[chan])
+		if (status.underrun > m_last_rx_underruns[chan]) {
 			*underrun = true;
+			LOGC(DDEV, ERROR) << "chan " << chan << ": recv Underrun! ("
+					  << m_last_rx_underruns[chan] << " -> "
+					  << status.underrun << ")";
+		}
 		m_last_rx_underruns[chan] = status.underrun;
 
-		if (status.overrun > m_last_rx_overruns[chan])
+		if (status.overrun > m_last_rx_overruns[chan]) {
 			*overrun = true;
+			LOGC(DDEV, ERROR) << "chan " << chan << ": recv Overrun! ("
+					  << m_last_rx_overruns[chan] << " -> "
+					  << status.overrun << ")";
+		}
 		m_last_rx_overruns[chan] = status.overrun;
 	}
 }

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

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8c6b1d3e8515153e5d4079cc6620901ef8ce2449
Gerrit-Change-Number: 13786
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190426/3a2bcee7/attachment.html>


More information about the gerrit-log mailing list