aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-07-13 21:29:30 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-07-13 21:32:26 +0200
commit728c2df7966c0ca0b6c3064972a14684910375c4 (patch)
treec1ff7ae92cca6145371ee1a40ddd891e019d85cc
parentbaff9c752e3e38581e32cc97bdb510394a34b608 (diff)
rtp.c: Fix print format
Fixes compilation warning Change-Id: I0146a19bf852c9e27d265a098dc9d7a337424e10
-rw-r--r--src/rtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rtp.c b/src/rtp.c
index e965d85..7ac5862 100644
--- a/src/rtp.c
+++ b/src/rtp.c
@@ -3,6 +3,7 @@
#include <errno.h>
#include <string.h> /* for memcpy. */
#include <arpa/inet.h> /* for ntohs. */
+#include <inttypes.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/msgb.h>
@@ -44,7 +45,7 @@ void osmo_rtp_handle_free(struct osmo_rtp_handle *h)
int osmo_rtp_handle_tx_set_sequence(struct osmo_rtp_handle *h, uint16_t seq)
{
- DEBUGP(DLMUX, "%s (handle=%p, seq=%hu)\n", __FUNCTION__, h, seq);
+ DEBUGP(DLMUX, "%s (handle=%p, seq=%"PRIu16")\n", __FUNCTION__, h, seq);
h->tx.sequence = seq;
@@ -53,7 +54,7 @@ int osmo_rtp_handle_tx_set_sequence(struct osmo_rtp_handle *h, uint16_t seq)
int osmo_rtp_handle_tx_set_ssrc(struct osmo_rtp_handle *h, uint32_t ssrc)
{
- DEBUGP(DLMUX, "%s (handle=%p, seq=%hu)\n", __FUNCTION__, h, ssrc);
+ DEBUGP(DLMUX, "%s (handle=%p, seq=%"PRIu32")\n", __FUNCTION__, h, ssrc);
h->tx.ssrc = ssrc;
return 0;
@@ -61,7 +62,7 @@ int osmo_rtp_handle_tx_set_ssrc(struct osmo_rtp_handle *h, uint32_t ssrc)
int osmo_rtp_handle_tx_set_timestamp(struct osmo_rtp_handle *h, uint32_t timestamp)
{
- DEBUGP(DLMUX, "%s (handle=%p, ts=%hu)\n", __FUNCTION__, h, timestamp);
+ DEBUGP(DLMUX, "%s (handle=%p, ts=%"PRIu32")\n", __FUNCTION__, h, timestamp);
h->tx.timestamp = timestamp;
return 0;