[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.
This commit is contained in:
Holger Hans Peter Freyther
2010-04-21 18:49:55 +08:00
parent a4376adb54
commit ca0c2f9d1e

View File

@@ -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;
}