diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-04-25 15:02:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-04-25 15:02:26 +0200 |
commit | 512db84622eae10ad3d1f0341d02a8601d6f7b1a (patch) | |
tree | 6dc9005b75e508e17e4e4d919593dd9d969a49a5 | |
parent | e71cdedcfb150ae58bc848fde4a0cc46413e741a (diff) |
osmux: cleanup debugging message
Remove message that is printed twice and reword the messages to
make it more clear the traffic flow when compressing and
decompressing the RTP AMR traffic.
-rw-r--r-- | src/osmux.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/osmux.c b/src/osmux.c index 8b049c6..d705781 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -91,7 +91,6 @@ osmux_rebuild_rtp(struct osmux_out_handle *h, struct msgb *out_msg; struct rtp_hdr *rtph; struct amr_hdr *amrh; - char buf[4096]; out_msg = msgb_alloc(sizeof(struct rtp_hdr) + sizeof(struct amr_hdr) + @@ -130,10 +129,6 @@ osmux_rebuild_rtp(struct osmux_out_handle *h, h->rtp_seq++; h->rtp_timestamp += DELTA_RTP_TIMESTAMP; - osmo_rtp_snprintf(buf, sizeof(buf), out_msg); - buf[sizeof(buf)-1] = '\0'; - LOGP(DLMIB, LOGL_DEBUG, "%s\n", buf); - return out_msg; } @@ -162,7 +157,7 @@ int osmux_xfrm_output(struct osmux_hdr *osmuxh, struct osmux_out_handle *h, osmo_rtp_snprintf(buf, sizeof(buf), msg); buf[sizeof(buf)-1] = '\0'; - LOGP(DLMIB, LOGL_DEBUG, "extracted: %s\n", buf); + LOGP(DLMIB, LOGL_DEBUG, "to BTS: %s\n", buf); llist_add_tail(&msg->list, list); } return i; @@ -298,7 +293,7 @@ static struct msgb *osmux_build_batch(struct osmux_in_handle *h) osmo_rtp_snprintf(buf, sizeof(buf), cur); buf[sizeof(buf)-1] = '\0'; - LOGP(DLMIB, LOGL_DEBUG, "built: %s\n", buf); + LOGP(DLMIB, LOGL_DEBUG, "to BSC-NAT: %s\n", buf); rtph = osmo_rtp_get_hdr(cur); if (rtph == NULL) |