summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-17 12:58:46 +0800
committerHarald Welte <laforge@gnumonks.org>2012-06-17 12:58:46 +0800
commit8eda90d9506ca4c34a3476415eb70d51043fcdf1 (patch)
treebdc555310b6b47f924f8be4a793eba2ea5824ab9 /openbsc
parentf543036719ccbb2431563d6af968502f9097db98 (diff)
libgb/gprs: don't use log_info from libcommon anymore
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/osmocom/gprs/gprs_msgb.h3
-rw-r--r--openbsc/src/libgb/common_vty.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/include/osmocom/gprs/gprs_msgb.h b/openbsc/include/osmocom/gprs/gprs_msgb.h
index 3567bb7f..f4c85547 100644
--- a/openbsc/include/osmocom/gprs/gprs_msgb.h
+++ b/openbsc/include/osmocom/gprs/gprs_msgb.h
@@ -31,4 +31,7 @@ struct libgb_msgb_cb {
#define GPRS_CTX_NSVC 0
#define GPRS_CTX_BVC 1
+#include <osmocom/core/logging.h>
+int gprs_log_filter_fn(const struct log_context *ctx,
+ struct log_target *tar);
#endif
diff --git a/openbsc/src/libgb/common_vty.c b/openbsc/src/libgb/common_vty.c
index 408dddf7..0bd0b6c3 100644
--- a/openbsc/src/libgb/common_vty.c
+++ b/openbsc/src/libgb/common_vty.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <osmocom/core/talloc.h>
+#include <osmocom/core/logging.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/command.h>
@@ -70,7 +71,7 @@ int gprs_log_filter_fn(const struct log_context *ctx,
struct log_target *tar)
{
const struct gprs_nsvc *nsvc = ctx->ctx[GPRS_CTX_NSVC];
- const struct gprs_nsvc *bvc = ctx->ctx[GPRS_CTX_BVC];
+ const struct gprs_bvc *bvc = ctx->ctx[GPRS_CTX_BVC];
/* Filter on the NS Virtual Connection */
if ((tar->filter_map & (1 << FLT_NSVC)) != 0