aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-15 23:50:56 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-15 23:50:56 +0200
commit3bac9a84ceeb17edd71a11e9b1b9a30bd409f827 (patch)
treeb0b980b2b5a3be8cd1270472c53a4099f86cb461 /openbsc/src
parent52613a114a12361960d0c0b33db57a5fa981b6e5 (diff)
VTY / logging: Fix subscriber context / imsi filtering
The debug.c code had its own private CTX_ definitions that were not synchronized with debug.h:BSC_CTX_* definitions.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/debug.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/openbsc/src/debug.c b/openbsc/src/debug.c
index cfbf7df81..1ef5c733f 100644
--- a/openbsc/src/debug.c
+++ b/openbsc/src/debug.c
@@ -173,10 +173,6 @@ static const struct log_info_cat default_categories[] = {
},
};
-enum log_ctxt {
- CTX_SUBSCRIBER,
-};
-
enum log_filter {
_FLT_ALL = LOG_FILTER_ALL, /* libosmocore */
FLT_IMSI = 1,
@@ -185,7 +181,7 @@ enum log_filter {
static int filter_fn(const struct log_context *ctx,
struct log_target *tar)
{
- struct gsm_subscriber *subscr = ctx->ctx[CTX_SUBSCRIBER];
+ struct gsm_subscriber *subscr = ctx->ctx[BSC_CTX_SUBSCR];
if ((tar->filter_map & (1 << FLT_IMSI)) != 0
&& subscr && strcmp(subscr->imsi, tar->filter_data[FLT_IMSI]) == 0)