mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 05:23:43 +00:00
debug.h/c: remove unused cruft / cosmetic tweaks
Change-Id: I9601d478763569933bcc46bf4eaaff70a9843be9
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user