diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 17:22:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 17:25:28 +0200 |
commit | 91ca4a77b74355fa2a1c633097ca85618a0bdc7c (patch) | |
tree | 3b062636b3b592d855a9238999f36fb91d2ccfd2 /openbsc/src/libmgcp | |
parent | f892763b0f79c8c061d02e46791ab3b387bb9efa (diff) |
osmux: remove spamming debug log messages
It may print a debug line every 20ms, so disable this. We can still
compile this extra spamming debug from the libosmo-netif library.
Diffstat (limited to 'openbsc/src/libmgcp')
-rw-r--r-- | openbsc/src/libmgcp/osmux.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c index eeafe394d..c57df005b 100644 --- a/openbsc/src/libmgcp/osmux.c +++ b/openbsc/src/libmgcp/osmux.c @@ -47,14 +47,8 @@ static void osmux_deliver(struct msgb *batch_msg, void *data) .sin_family = AF_INET, .sin_port = handle->rem_port, }; - char buf[4096]; memcpy(&out.sin_addr, &handle->rem_addr, sizeof(handle->rem_addr)); - - osmux_snprintf(buf, sizeof(buf), batch_msg); - LOGP(DMGCP, LOGL_DEBUG, "OSMUX delivering batch to addr=%s: %s\n", - inet_ntoa(out.sin_addr), buf); - sendto(osmux_fd.fd, batch_msg->data, batch_msg->len, 0, (struct sockaddr *)&out, sizeof(out)); } @@ -261,7 +255,6 @@ int osmux_read_from_bsc_nat_cb(struct osmo_fd *ofd, unsigned int what) struct llist_head list; struct sockaddr_in addr; struct mgcp_config *cfg = ofd->data; - char buf[4096]; msg = osmux_recv(ofd, &addr); if (!msg) @@ -271,10 +264,6 @@ int osmux_read_from_bsc_nat_cb(struct osmo_fd *ofd, unsigned int what) if (msg->data[0] == MGCP_DUMMY_LOAD) goto out; - osmux_snprintf(buf, sizeof(buf), msg); - LOGP(DMGCP, LOGL_DEBUG, "received OSMUX message from " - "BSC NAT (len=%d) %s\n", msg->len, buf); - while((osmuxh = osmux_xfrm_output_pull(msg)) != NULL) { struct mgcp_endpoint *endp; @@ -287,11 +276,6 @@ int osmux_read_from_bsc_nat_cb(struct osmo_fd *ofd, unsigned int what) osmuxh->circuit_id); goto out; } - - LOGP(DMGCP, LOGL_DEBUG, - "sending extracted RTP from OSMUX to BSC via endpoint=%u " - "(allocated=%d)\n", ENDPOINT_NUMBER(endp), endp->allocated); - osmux_xfrm_output(osmuxh, &endp->osmux.out, &list); osmux_tx_sched(&list, scheduled_tx_bts_cb, endp); } @@ -358,7 +342,6 @@ int osmux_read_from_bsc_cb(struct osmo_fd *ofd, unsigned int what) struct llist_head list; struct sockaddr_in addr; struct mgcp_config *cfg = ofd->data; - char buf[4096]; msg = osmux_recv(ofd, &addr); if (!msg) @@ -368,12 +351,6 @@ int osmux_read_from_bsc_cb(struct osmo_fd *ofd, unsigned int what) if (msg->data[0] == MGCP_DUMMY_LOAD) return osmux_handle_dummy(cfg, &addr, msg); - osmux_snprintf(buf, sizeof(buf), msg); - LOGP(DMGCP, LOGL_DEBUG, - "received OSMUX message from BSC(%s:%d) (len=%d) %s\n", - inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), - msg->len, buf); - while((osmuxh = osmux_xfrm_output_pull(msg)) != NULL) { struct mgcp_endpoint *endp; @@ -386,11 +363,6 @@ int osmux_read_from_bsc_cb(struct osmo_fd *ofd, unsigned int what) osmuxh->circuit_id); goto out; } - - LOGP(DMGCP, LOGL_DEBUG, - "sending extracted RTP from OSMUX to MSC via endpoint=%u " - "(allocated=%d)\n", ENDPOINT_NUMBER(endp), endp->allocated); - osmux_xfrm_output(osmuxh, &endp->osmux.out, &list); osmux_tx_sched(&list, scheduled_tx_net_cb, endp); } |