diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-08-06 03:52:47 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-08-08 01:29:16 +0700 |
commit | 089e4baef3c825959d90e5cd302a2266586e6d62 (patch) | |
tree | f0471b2065697cb8d1d801efc85d4ad134fc88a4 /src | |
parent | dc277712050b97ef7018980400700b9e7ee8bf06 (diff) |
l1sap: radio_link_timeout(): use LOGPLCHAN() macro
Change-Id: Icc642599d85a751a750b382674dea5614b6f9ee4
Diffstat (limited to 'src')
-rw-r--r-- | src/common/l1sap.c | 14 |
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; } } |