aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-23 19:42:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-28 13:38:19 +0800
commit94d625bfa09be748aa1a157da8320bd75761d431 (patch)
tree0a1f288d299012652ce9ec12ce205f877371862d /openbsc/src
parent9d4cca7a0ebbc781d89b9c51884a619cc2111876 (diff)
Revert "bsc_api: Move debug context for subscriber into the bsc_api.c"
This is breaking the filtering for the Measurement Report case, revert the patch for now. This reverts commit 69e8f8285bf080ad2050fbc20f861bc8621e5c75.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/abis_rsl.c1
-rw-r--r--openbsc/src/bsc_api.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 6a905d252..6c6230f5a 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -123,6 +123,7 @@ 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 74ae8f5de..cac08be09 100644
--- a/openbsc/src/bsc_api.c
+++ b/openbsc/src/bsc_api.c
@@ -28,7 +28,6 @@
#include <openbsc/signal.h>
#include <openbsc/abis_rsl.h>
#include <openbsc/chan_alloc.h>
-#include <openbsc/debug.h>
#include <osmocore/talloc.h>
@@ -95,7 +94,6 @@ 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 */