Review at  https://gerrit.osmocom.org/3249

rtp.c: Fix print format

Fixes compilation warning

Change-Id: I0146a19bf852c9e27d265a098dc9d7a337424e10
---
M src/rtp.c
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/49/3249/1

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 @@
 
 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_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_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;

-- 
To view, visit https://gerrit.osmocom.org/3249
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0146a19bf852c9e27d265a098dc9d7a337424e10
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to