From 5e93080aa22f7f6d5bf7fa2687189320e2f43304 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 1 Oct 2021 16:52:47 +0200 Subject: [PATCH] [airplay] Fix warning about int type seqnum --- src/outputs/airplay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/outputs/airplay.c b/src/outputs/airplay.c index c9ac7e22..bec0a981 100644 --- a/src/outputs/airplay.c +++ b/src/outputs/airplay.c @@ -1978,8 +1978,8 @@ packets_resend(struct airplay_session *rs, uint16_t seqnum, int len) rtp_session = rs->master_session->rtp_session; - DPRINTF(E_DBG, L_AIRPLAY, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), last RTP session seqnum %" PRIu16 " (len %zu)\n", - rs->devname, seqnum, len, rtp_session->seqnum - 1, rtp_session->pktbuf_len); + DPRINTF(E_DBG, L_AIRPLAY, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), next RTP session seqnum %" PRIu16 " (len %zu)\n", + rs->devname, seqnum, len, rtp_session->seqnum, rtp_session->pktbuf_len); // Note that seqnum may wrap around, so we don't use it for counting for (i = 0, s = seqnum; i < len; i++, s++) @@ -1992,8 +1992,8 @@ packets_resend(struct airplay_session *rs, uint16_t seqnum, int len) } if (pkt_missing) - DPRINTF(E_WARN, L_AIRPLAY, "Device '%s' retransmit request for seqnum %" PRIu16 " (len %d) is outside buffer range (last seqnum %" PRIu16 ", len %zu)\n", - rs->devname, seqnum, len, rtp_session->seqnum - 1, rtp_session->pktbuf_len); + DPRINTF(E_WARN, L_AIRPLAY, "Device '%s' retransmit request for seqnum %" PRIu16 " (len %d) is outside buffer range (next seqnum %" PRIu16 ", len %zu)\n", + rs->devname, seqnum, len, rtp_session->seqnum, rtp_session->pktbuf_len); } static int