aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-17 17:06:59 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-22 17:28:49 +0100
commit94f49a4f08a963d473e9ab2c935d9cafa58f9067 (patch)
treeadbae7ba54f481c8c971ed60e3760f0cb3a060ff /openbsc
parentf13b3c968ff6266cc19188fe25cb3f7d8d780b6d (diff)
debug.h/c: remove unused cruft / cosmetic tweaks
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/openbsc/debug.h12
-rw-r--r--openbsc/src/libcommon/debug.c3
2 files changed, 2 insertions, 13 deletions
diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h
index ca00fe9e8..63000201d 100644
--- a/openbsc/include/openbsc/debug.h
+++ b/openbsc/include/openbsc/debug.h
@@ -1,5 +1,4 @@
-#ifndef _DEBUG_H
-#define _DEBUG_H
+#pragma once
#include <stdio.h>
#include <osmocom/core/linuxlist.h>
@@ -41,17 +40,8 @@ enum {
Debug_LastEntry,
};
-/* we don't need a header dependency for this... */
-struct gprs_nsvc;
-struct bssgp_bvc_ctx;
struct gsm_subscriber;
void log_set_imsi_filter(struct log_target *target, struct gsm_subscriber *subscr);
-void log_set_nsvc_filter(struct log_target *target,
- struct gprs_nsvc *nsvc);
-void log_set_bvc_filter(struct log_target *target,
- struct bssgp_bvc_ctx *bctx);
extern const struct log_info log_info;
-
-#endif /* _DEBUG_H */
diff --git a/openbsc/src/libcommon/debug.c b/openbsc/src/libcommon/debug.c
index 51fbb931e..3f3232c46 100644
--- a/openbsc/src/libcommon/debug.c
+++ b/openbsc/src/libcommon/debug.c
@@ -177,8 +177,7 @@ static const struct log_info_cat default_categories[] = {
},
};
-static int filter_fn(const struct log_context *ctx,
- struct log_target *tar)
+static int filter_fn(const struct log_context *ctx, struct log_target *tar)
{
const struct gsm_subscriber *subscr = ctx->ctx[LOGGING_CTX_VLR_SUBSCR];
const struct gprs_nsvc *nsvc = ctx->ctx[LOGGING_CTX_GB_NSVC];