aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-01 10:37:15 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:17 +0800
commit19c3544f0a9072817069f407d88a3c4101582090 (patch)
tree5e2811f71f3b0563986ffc7c3bbbaa8b04168b82 /openbsc/src/nat/bsc_nat.c
parent3a347f0acedce739c94488c87313a1dcf95f9052 (diff)
nat: Improve log message and refer to the BSC that was lost.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 32f219661..b4e096e30 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -600,9 +600,13 @@ static int ipaccess_bsc_read_cb(struct bsc_fd *bfd)
if (!msg) {
if (error == 0)
- LOGP(DNAT, LOGL_ERROR, "The connection to the BSC was lost. Cleaning it\n");
+ LOGP(DNAT, LOGL_ERROR,
+ "The connection to the BSC Nr: %d was lost. Cleaning it\n",
+ bsc->cfg ? bsc->cfg->nr : -1);
else
- LOGP(DNAT, LOGL_ERROR, "Failed to parse ip access message: %d\n", error);
+ LOGP(DNAT, LOGL_ERROR,
+ "Stream error on BSC Nr: %d. Failed to parse ip access message: %d\n",
+ bsc->cfg ? bsc->cfg->nr : -1, error);
bsc_close_connection(bsc);
return -1;