diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-21 15:35:03 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-21 16:40:09 +0800 |
commit | 69e8f8285bf080ad2050fbc20f861bc8621e5c75 (patch) | |
tree | 49d591783e7f0287b19c5a448cee4f377b0bc375 /openbsc | |
parent | db4ef0d3699bb289e2cb333b5fa822ce279a4841 (diff) |
bsc_api: Move debug context for subscriber into the bsc_api.c
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/abis_rsl.c | 1 | ||||
-rw-r--r-- | openbsc/src/bsc_api.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 24bc9ca79..5017b5c09 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -119,7 +119,6 @@ struct gsm_lchan *lchan_lookup(struct gsm_bts_trx *trx, u_int8_t chan_nr) lchan = &ts->lchan[lch_idx]; log_set_context(BSC_CTX_LCHAN, lchan); - log_set_context(BSC_CTX_SUBSCR, lchan->conn.subscr); return lchan; } diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c index cac08be09..74ae8f5de 100644 --- a/openbsc/src/bsc_api.c +++ b/openbsc/src/bsc_api.c @@ -28,6 +28,7 @@ #include <openbsc/signal.h> #include <openbsc/abis_rsl.h> #include <openbsc/chan_alloc.h> +#include <openbsc/debug.h> #include <osmocore/talloc.h> @@ -94,6 +95,7 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) conn = &msg->lchan->conn; if (conn->allocated) { + log_set_context(BSC_CTX_SUBSCR, conn->subscr); api->dtap(conn, msg); } else { /* accept the connection or close the lchan */ |