aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libgb/gprs_bssgp.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-16 17:45:59 +0800
committerHarald Welte <laforge@gnumonks.org>2012-06-16 17:53:38 +0800
commit68d85d5610858e1c7d0427a82bae1fb645f5590a (patch)
tree1011076b6b2092c17f5ff5d30331ce3e9dbd2474 /openbsc/src/libgb/gprs_bssgp.c
parentfdd8b3b40dd4499a15558afc10f8d7cfd0041157 (diff)
libgb: Remove dependency to openbsc/debug.h
Diffstat (limited to 'openbsc/src/libgb/gprs_bssgp.c')
-rw-r--r--openbsc/src/libgb/gprs_bssgp.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/src/libgb/gprs_bssgp.c b/openbsc/src/libgb/gprs_bssgp.c
index 33cca3dfc..a64973645 100644
--- a/openbsc/src/libgb/gprs_bssgp.c
+++ b/openbsc/src/libgb/gprs_bssgp.c
@@ -32,13 +32,13 @@
#include <osmocom/core/talloc.h>
#include <osmocom/core/rate_ctr.h>
-#include <openbsc/debug.h>
-
#include <osmocom/gprs/gprs_bssgp.h>
#include <osmocom/gprs/gprs_ns.h>
#include <openbsc/gprs_gmm.h>
+#include "common_vty.h"
+
void *bssgp_tall_ctx = NULL;
static const struct rate_ctr_desc bssgp_ctr_description[] = {
@@ -683,7 +683,7 @@ int gprs_bssgp_rcvmsg(struct msgb *msg)
}
if (bctx) {
- log_set_context(BSC_CTX_BVC, bctx);
+ log_set_context(GPRS_CTX_BVC, bctx);
rate_ctr_inc(&bctx->ctrg->ctr[BSSGP_CTR_PKTS_IN]);
rate_ctr_add(&bctx->ctrg->ctr[BSSGP_CTR_BYTES_IN],
msgb_bssgp_len(msg));
@@ -853,3 +853,8 @@ int gprs_bssgp_tx_paging(uint16_t nsei, uint16_t ns_bvci,
return gprs_ns_sendmsg(bssgp_nsi, msg);
}
+
+void gprs_bssgp_set_log_ss(int ss)
+{
+ DBSSGP = ss;
+}