aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_api.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-21 15:35:03 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-21 16:40:09 +0800
commit69e8f8285bf080ad2050fbc20f861bc8621e5c75 (patch)
tree49d591783e7f0287b19c5a448cee4f377b0bc375 /openbsc/src/bsc_api.c
parentdb4ef0d3699bb289e2cb333b5fa822ce279a4841 (diff)
bsc_api: Move debug context for subscriber into the bsc_api.c
Diffstat (limited to 'openbsc/src/bsc_api.c')
-rw-r--r--openbsc/src/bsc_api.c2
1 files changed, 2 insertions, 0 deletions
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 */