aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-05-04 22:59:03 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-08 16:16:42 +0000
commit8cb570cd064967be82f86001e8f08d3671c28ba7 (patch)
tree6af58e94966276c52cc15f239dfedfeb26750b7f
parent57f32626e33ab710788192dd2254d59eb872d4a9 (diff)
log: assignment: add two logs on unexpected lchan release
-rw-r--r--src/osmo-bsc/bsc_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bsc/bsc_api.c b/src/osmo-bsc/bsc_api.c
index 7aa0e3658..218f1a136 100644
--- a/src/osmo-bsc/bsc_api.c
+++ b/src/osmo-bsc/bsc_api.c
@@ -693,6 +693,7 @@ static int bsc_handle_lchan_signal(unsigned int subsys, unsigned int signal,
switch (signal) {
case S_LCHAN_UNEXPECTED_RELEASE:
+ LOGPLCHAN(lchan, DMSC, LOGL_NOTICE, "S_LCHAN_UNEXPECTED_RELEASE\n");
handle_release(lchan->conn, lchan);
break;
case S_LCHAN_ACTIVATE_ACK:
@@ -709,6 +710,8 @@ static int bsc_handle_lchan_signal(unsigned int subsys, unsigned int signal,
static void handle_release(struct gsm_subscriber_connection *conn, struct gsm_lchan *lchan)
{
if (conn->secondary_lchan == lchan) {
+ LOGPLCHAN(lchan, DMSC, LOGL_NOTICE,
+ "lchan release on new lchan, Assignment failed\n");
osmo_timer_del(&conn->T10);
conn->secondary_lchan = NULL;