diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-02-23 19:18:59 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-02-23 19:50:54 +0100 |
commit | 4cd6689587d957e8c074f6eb9bd79a1db25abb94 (patch) | |
tree | 1ef65fb43bbca3f87350751c2aed34d438c38f94 /examples/rtp-udp-test-client.c | |
parent | 59b4f799463e76aadfc86f028dd3676cec130624 (diff) |
examples: Display more details on RTP payload in rtp-udp-test-*
Minor change, more verbose output to make sure the functions in
the library are doing OK.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/rtp-udp-test-client.c')
-rw-r--r-- | examples/rtp-udp-test-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rtp-udp-test-client.c b/examples/rtp-udp-test-client.c index 4989a6c..3723b6b 100644 --- a/examples/rtp-udp-test-client.c +++ b/examples/rtp-udp-test-client.c @@ -60,8 +60,8 @@ static int read_cb(struct osmo_dgram_conn *conn) return -1; } - LOGP(DLINP, LOGL_DEBUG, "received message with RTP payload type: %d\n", - payload_type); + LOGP(DLINP, LOGL_DEBUG, "received message with payload type: %d " + "and size: %d (%s)\n", payload_type, msg->len, msg->data); msgb_free(msg); return 0; @@ -81,7 +81,7 @@ static void *tall_test; int main(int argc, char *argv[]) { int i; - char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = {}; + char dummy_data[RTP_PT_GSM_FULL_PAYLOAD_LEN] = "payload test"; signal(SIGINT, sighandler); |