From 6995f24831b70ef64bd08976f2aecc5314fe9862 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 28 Dec 2014 18:54:32 +0100 Subject: logging: Only compare the subscr address Move the "logging filter imsi IMSI" into the BTS/NITB code to allow to set the gsm_subscriber and only compare it. This way we simply compare the subscriber address and don't have to care if the subscriber data is still valid. --- openbsc/include/openbsc/debug.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h index d851181c7..bbb3ee618 100644 --- a/openbsc/include/openbsc/debug.h +++ b/openbsc/include/openbsc/debug.h @@ -53,8 +53,9 @@ enum { /* 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, const char *imsi); +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, -- cgit v1.2.3