Change in osmo-bts[master]: l1sap: radio_link_timeout(): use LOGPLCHAN() macro

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Fri Aug 7 19:01:39 UTC 2020


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/19534 )

Change subject: l1sap: radio_link_timeout(): use LOGPLCHAN() macro
......................................................................

l1sap: radio_link_timeout(): use LOGPLCHAN() macro

Change-Id: Icc642599d85a751a750b382674dea5614b6f9ee4
---
M src/common/l1sap.c
1 file changed, 8 insertions(+), 6 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index dc236aa..ea1219f 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1178,14 +1178,15 @@
 
 	/* if link loss criterion already reached */
 	if (lchan->s == 0) {
-		DEBUGP(DMEAS, "%s radio link timeout counter S is already 0\n",
-			gsm_lchan_name(lchan));
+		LOGPLCHAN(lchan, DMEAS, LOGL_DEBUG,
+			  "radio link timeout counter S is already 0\n");
 		return;
 	}
 
 	if (bad_frame) {
-		DEBUGP(DMEAS, "%s decreasing radio link timeout counter S=%d -> %d\n",
-			gsm_lchan_name(lchan), lchan->s, lchan->s - 1);
+		LOGPLCHAN(lchan, DMEAS, LOGL_DEBUG,
+			  "decreasing radio link timeout counter S=%d -> %d\n",
+			  lchan->s, lchan->s - 1);
 		lchan->s--; /* count down radio link counter S */
 		if (lchan->s == 0) {
 			LOGPLCHAN(lchan, DMEAS, LOGL_NOTICE,
@@ -1201,8 +1202,9 @@
 		int s = lchan->s + 2;
 		if (s > bts->radio_link_timeout)
 			s = bts->radio_link_timeout;
-		DEBUGP(DMEAS, "%s increasing radio link timeout counter S=%d -> %d\n",
-			gsm_lchan_name(lchan), lchan->s, s);
+		LOGPLCHAN(lchan, DMEAS, LOGL_DEBUG,
+			  "increasing radio link timeout counter S=%d -> %d\n",
+			  lchan->s, s);
 		lchan->s = s;
 	}
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/19534
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Icc642599d85a751a750b382674dea5614b6f9ee4
Gerrit-Change-Number: 19534
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200807/32ec5ffa/attachment.htm>


More information about the gerrit-log mailing list