summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-12-27 11:48:11 +0100
committerHarald Welte <laforge@gnumonks.org>2009-12-28 13:40:32 +0100
commit91b603db57db631c350dcb72117d20286d36aa21 (patch)
tree407181c0bb19927bfced8013ac39399bf1e5ed2d
parent28f1d37380514df4810f723c80d86b9585fd1db1 (diff)
correctly print chan act nack error
-rw-r--r--openbsc/src/abis_rsl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index bd04fe245..ec716144f 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -931,6 +931,9 @@ static int rsl_rx_chan_act_nack(struct msgb *msg)
struct abis_rsl_dchan_hdr *dh = msgb_l2(msg);
struct tlv_parsed tp;
+ LOGP(DRSL, LOGL_ERROR, "%s CHANNEL ACTIVATE NACK",
+ gsm_ts_name(msg->lchan->ts));
+
/* BTS has rejected channel activation ?!? */
if (dh->ie_chan != RSL_IE_CHAN_NR)
return -EINVAL;
@@ -942,6 +945,8 @@ static int rsl_rx_chan_act_nack(struct msgb *msg)
msg->lchan->state = LCHAN_S_NONE;
+ LOGPC(DRSL, LOGL_ERROR, "\n");
+
dispatch_signal(SS_LCHAN, S_LCHAN_ACTIVATE_NACK, msg->lchan);
lchan_free(msg->lchan);
@@ -1122,7 +1127,6 @@ static int abis_rsl_rx_dchan(struct msgb *msg)
rc = rsl_rx_chan_act_ack(msg);
break;
case RSL_MT_CHAN_ACTIV_NACK:
- DEBUGP(DRSL, "%s CHANNEL ACTIVATE NACK\n", ts_name);
rc = rsl_rx_chan_act_nack(msg);
break;
case RSL_MT_CONN_FAIL: