summaryrefslogtreecommitdiffstats
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
commitcca4963c581f26353b6fb1187446df70b399cf29 (patch)
tree7b68a846b718c72a6e78398ec70a943b9ca722f5 /openbsc/src/libgb/gprs_bssgp.c
parent4f5883bc6ef83e692625de05e1d7297a0772d4c7 (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 33cca3df..a6497364 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;
+}