summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libgb/gprs_bssgp.c
diff options
context:
space:
mode:
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;
+}