aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-06 03:52:47 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-08 01:29:16 +0700
commit089e4baef3c825959d90e5cd302a2266586e6d62 (patch)
treef0471b2065697cb8d1d801efc85d4ad134fc88a4
parentdc277712050b97ef7018980400700b9e7ee8bf06 (diff)
l1sap: radio_link_timeout(): use LOGPLCHAN() macro
-rw-r--r--src/common/l1sap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index dc236aa3..ea1219fb 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1178,14 +1178,15 @@ static void radio_link_timeout(struct gsm_lchan *lchan, int bad_frame)
/* 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 @@ static void radio_link_timeout(struct gsm_lchan *lchan, int bad_frame)
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;
}
}