From bd3250a456c48ae61f62d1c28f4a241ec79ff4b6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 1 May 2013 09:58:26 +0200 Subject: sysmobts: Print the lchan name for the S counter. --- src/osmo-bts-sysmo/l1_if.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3