From 119a1976f538d671e7c9b097f2dc8aff76d3be15 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 21 Apr 2010 18:49:55 +0800 Subject: [nat] Slightly improve logging.. If we find the connection of a different BSC at least log the BSCs that had duplicated references. We should also dump the src ref and such but i am not doing this right now. --- openbsc/src/nat/bsc_nat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/src') diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index abf38ce4e..00dcc8884 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -556,7 +556,8 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg) } if (con && con->bsc != bsc) { - LOGP(DNAT, LOGL_ERROR, "Found the wrong entry.\n"); + LOGP(DNAT, LOGL_ERROR, "The connection belongs to a different BTS: input: %d con: %d\n", + bsc->cfg->nr, con->bsc->cfg->nr); goto exit2; } -- cgit v1.2.3