diff --git a/src/fmt/print.c b/src/fmt/print.c index a02fb858b..7a13cccda 100644 --- a/src/fmt/print.c +++ b/src/fmt/print.c @@ -494,11 +494,11 @@ static int vhprintf(const char *fmt, va_list ap, re_vprintf_h *vph, void *arg, out: #ifndef RELEASE if (err == ENODATA) { - DEBUG_WARNING("Format: \"%b<-- NO ARG\n", fmt, p - fmt + 1); + re_fprintf(stderr, "Format: \"%b<-- NO ARG\n", fmt, p - fmt + 1); re_assert(0 && "RE_VA_ARG: no more arguments"); } if (err == EOVERFLOW) { - DEBUG_WARNING("Format: \"%b<-- SIZE ERROR\n", fmt, + re_fprintf(stderr, "Format: \"%b<-- SIZE ERROR\n", fmt, p - fmt + 1); re_assert(0 && "RE_VA_ARG: arg is not compatible"); } diff --git a/src/rtp/rtcp.c b/src/rtp/rtcp.c index 51142a726..7622b2926 100644 --- a/src/rtp/rtcp.c +++ b/src/rtp/rtcp.c @@ -202,10 +202,10 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg) if (!msg) return 0; - err = re_hprintf(pf, "%8s pad=%d count=%-2d pt=%-3d len=%u ", + err = re_hprintf(pf, "%8s pad=%u count=%-2u pt=%-3u len=%u ", rtcp_type_name((enum rtcp_type)msg->hdr.pt), - msg->hdr.p, - msg->hdr.count, msg->hdr.pt, msg->hdr.length); + (unsigned)msg->hdr.p, + (unsigned)msg->hdr.count, (unsigned)msg->hdr.pt, msg->hdr.length); if (err) return err; @@ -222,7 +222,7 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg) for (i=0; ihdr.count && !err; i++) { const struct rtcp_rr *rr = &msg->r.sr.rrv[i]; err = re_hprintf(pf, " {%08x %u %d %u %u %u %u}", - rr->ssrc, rr->fraction, rr->lost, + rr->ssrc, rr->fraction, (int)rr->lost, rr->last_seq, rr->jitter, rr->lsr, rr->dlsr); } @@ -233,7 +233,7 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg) for (i=0; ihdr.count && !err; i++) { const struct rtcp_rr *rr = &msg->r.rr.rrv[i]; err = re_hprintf(pf, " {0x%08x %u %d %u %u %u %u}", - rr->ssrc, rr->fraction, rr->lost, + rr->ssrc, rr->fraction, (int)rr->lost, rr->last_seq, rr->jitter, rr->lsr, rr->dlsr); } @@ -258,7 +258,7 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg) break; case RTCP_BYE: - err = re_hprintf(pf, "%u srcs:", msg->hdr.count); + err = re_hprintf(pf, "%u srcs:", (unsigned)msg->hdr.count); for (i=0; ihdr.count && !err; i++) { err = re_hprintf(pf, " %08x", msg->r.bye.srcv[i]);