aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-05-01 09:58:26 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-05-01 19:03:30 +0200
commitbd3250a456c48ae61f62d1c28f4a241ec79ff4b6 (patch)
tree7907abfe10d74e2338989ca3650524b5aa513881
parent3a6220cae26c9f10d85519c7495ed6b30e6fbc54 (diff)
sysmobts: Print the lchan name for the S counter.
-rw-r--r--src/osmo-bts-sysmo/l1_if.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 6c478712..b4b406a3 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -652,14 +652,17 @@ static void radio_link_timeout(struct gsm_lchan *lchan, int bad_frame)
struct gsm_bts_role_bts *btsb = lchan->ts->trx->bts->role;
/* if link loss criterion already reached */
- if (lchan->s == 0)
+ if (lchan->s == 0) {
+ DEBUGP(DMEAS, "%s radio link counter S already 0.\n",
+ gsm_lchan_name(lchan));
return;
+ }
if (bad_frame) {
/* count down radio link counter S */
lchan->s--;
- DEBUGP(DMEAS, "counting down radio link counter S=%d\n",
- lchan->s);
+ DEBUGP(DMEAS, "%s counting down radio link counter S=%d\n",
+ gsm_lchan_name(lchan), lchan->s);
if (lchan->s == 0)
rsl_tx_conn_fail(lchan, RSL_ERR_RADIO_LINK_FAIL);
return;
@@ -670,8 +673,8 @@ static void radio_link_timeout(struct gsm_lchan *lchan, int bad_frame)
lchan->s += 2;
if (lchan->s > btsb->radio_link_timeout)
lchan->s = btsb->radio_link_timeout;
- DEBUGP(DMEAS, "counting up radio link counter S=%d\n",
- lchan->s);
+ DEBUGP(DMEAS, "%s counting up radio link counter S=%d\n",
+ gsm_lchan_name(lchan), lchan->s);
}
}