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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Apr 25 21:27:45 UTC 2019


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



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

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: newchange
Gerrit-Change-Id: I8c6b1d3e8515153e5d4079cc6620901ef8ce2449
Gerrit-Change-Number: 13786
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190425/6bfda1a9/attachment.htm>


More information about the gerrit-log mailing list