From a9aab6a9ca743a9c34ddab8feec8a0f09ae2d44d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 May 2010 00:45:07 +0800 Subject: [nat] Print on which BSC config this happend. --- openbsc/src/nat/bsc_nat_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index b45b30e5a..22db23231 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -208,7 +208,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *mi_string) if (bsc->cfg->imsi_deny) { if (regexec(&bsc->cfg->imsi_deny_re, mi_string, 0, NULL, 0) == 0) { LOGP(DNAT, LOGL_ERROR, - "Filtering %s by imsi_deny.\n", mi_string); + "Filtering %s by imsi_deny on bsc nr: %d.\n", mi_string, bsc->cfg->nr); return -2; } } @@ -223,7 +223,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *mi_string) if (bsc->nat->imsi_deny) { if (regexec(&bsc->nat->imsi_deny_re, mi_string, 0, NULL, 0) == 0) { LOGP(DNAT, LOGL_ERROR, - "Filtering %s by nat imsi_deny.\n", mi_string); + "Filtering %s by nat imsi_deny on bsc nr: %d.\n", mi_string, bsc->cfg->nr); return -3; } } -- cgit v1.2.3