From 58a2758e7819b5a6e0dfc21496ba0f703fc2900f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 1 May 2010 10:37:15 +0800 Subject: nat: Improve log message and refer to the BSC that was lost. --- openbsc/src/nat/bsc_nat.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index bf015329e..1cca8bacc 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; -- cgit v1.2.3