From 8eda90d9506ca4c34a3476415eb70d51043fcdf1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 17 Jun 2012 12:58:46 +0800 Subject: libgb/gprs: don't use log_info from libcommon anymore --- openbsc/include/osmocom/gprs/gprs_msgb.h | 3 +++ openbsc/src/libgb/common_vty.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 +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 #include +#include #include #include @@ -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 -- cgit v1.2.3