aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_debug.cpp
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 18:10:13 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 18:11:44 +0100
commita01e2ee177d42bdbeaea00f28bcdd65bc27f96e2 (patch)
tree072ad1fada832e4ea2ff8bdd49a183dee629b130 /src/gprs_debug.cpp
parentd0a887b28b4c3d609c9e8177ce43a9d70e19a03b (diff)
logging fixup: shorter names for LOGGING_FILTER_* and LOGGING_CTX_*
In libosmocore, my patch was merged to master a bit too soon. To accomodate the request for naming that matches the general "LOG" prefix instead of "LOGGING", a fixup was committed to libosmocore. Adjust for that. Original patch: change-id I5c343630020f4b108099696fd96c2111614c8067 The fixup: change-id I424fe3f12ea620338902b2bb8230544bde3f1a93 Change-Id: I4db4a668f2be07f3d55f848d38d1b490d8a7a685
Diffstat (limited to 'src/gprs_debug.cpp')
-rw-r--r--src/gprs_debug.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gprs_debug.cpp b/src/gprs_debug.cpp
index 6bb35eaa..c35eafab 100644
--- a/src/gprs_debug.cpp
+++ b/src/gprs_debug.cpp
@@ -49,17 +49,17 @@ static const struct log_info_cat default_categories[] = {
static int filter_fn(const struct log_context *ctx,
struct log_target *tar)
{
- const struct gprs_nsvc *nsvc = (const struct gprs_nsvc*)ctx->ctx[LOGGING_CTX_GB_NSVC];
- const struct gprs_nsvc *bvc = (const struct gprs_nsvc*)ctx->ctx[LOGGING_CTX_GB_BVC];
+ const struct gprs_nsvc *nsvc = (const struct gprs_nsvc*)ctx->ctx[LOG_CTX_GB_NSVC];
+ const struct gprs_nsvc *bvc = (const struct gprs_nsvc*)ctx->ctx[LOG_CTX_GB_BVC];
/* Filter on the NS Virtual Connection */
- if ((tar->filter_map & (1 << LOGGING_FILTER_GB_NSVC)) != 0
- && nsvc && (nsvc == tar->filter_data[LOGGING_FILTER_GB_NSVC]))
+ if ((tar->filter_map & (1 << LOG_FLT_GB_NSVC)) != 0
+ && nsvc && (nsvc == tar->filter_data[LOG_FLT_GB_NSVC]))
return 1;
/* Filter on the BVC */
- if ((tar->filter_map & (1 << LOGGING_FILTER_GB_BVC)) != 0
- && bvc && (bvc == tar->filter_data[LOGGING_FILTER_GB_BVC]))
+ if ((tar->filter_map & (1 << LOG_FLT_GB_BVC)) != 0
+ && bvc && (bvc == tar->filter_data[LOG_FLT_GB_BVC]))
return 1;
return 0;