From a1efcc26cbc7eace52072787b8372b57a0bf375d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 28 Aug 2014 14:48:47 +0200 Subject: osmux: remove redundant log message when bsc doesn't want to use Osmux Remove redundant information log message: <000b> bsc_mgcp_utils.c:647 BSC doesn't want to use Osmux, failing back to RTP <000b> bsc_mgcp_utils.c:669 bsc didn't accept to use Osmux (cid=0) One single log message is just fine. The error path already indicates the precise reason not to accept the request to use Osmux. --- openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'openbsc/src/osmo-bsc_nat') diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c index 606ac92df..d58039788 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c @@ -654,7 +654,7 @@ static void bsc_mgcp_osmux_confirm(struct mgcp_endpoint *endp, const char *str) } if (endp->osmux.cid != osmux_cid) { - LOGP(DMGCP, LOGL_INFO, + LOGP(DMGCP, LOGL_ERROR, "BSC sent us wrong CID %u, we expected %u", osmux_cid, endp->osmux.cid); goto err; @@ -664,8 +664,6 @@ static void bsc_mgcp_osmux_confirm(struct mgcp_endpoint *endp, const char *str) osmux_cid); return; err: - LOGP(DMGCP, LOGL_NOTICE, "bsc didn't accept to use Osmux (cid=%u)\n", - osmux_cid); osmux_put_cid(endp->osmux.cid); endp->osmux.cid = -1; endp->osmux.state = OSMUX_STATE_DISABLED; -- cgit v1.2.3