[vlc-devel] [PATCH] access: rist: fix format for size_t

Tristan Matthews tmatth at videolan.org
Wed Apr 1 18:41:33 CEST 2020


On Wed, Apr 1, 2020 at 12:35 PM Alexandre Janniaux <ajanni at videolabs.io> wrote:
>
> Fix a -Wformat warning on platforms with size_t != long unsigned.
> ---
>  modules/access/rist.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/access/rist.c b/modules/access/rist.c
> index be4b0b8058..62ab5690b9 100644
> --- a/modules/access/rist.c
> +++ b/modules/access/rist.c
> @@ -599,7 +599,7 @@ static bool rist_input(stream_t *p_access, struct rist_flow *flow, uint8_t *buf,
>      if ( len < RTP_HEADER_SIZE )
>      {
>          /* check if packet size >= rtp header size */
> -        msg_Err(p_access, "Rist rtp packet must have at least 12 bytes, we have %lu", len);
> +        msg_Err(p_access, "Rist rtp packet must have at least 12 bytes, we have %zu", len);
>          return false;
>      }
>      else if (!rtp_check_hdr(buf))
> --
> 2.26.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

Applied, thanks.

Best,
-t


More information about the vlc-devel mailing list