[vlc-commits] aribcam: use %zu formatter for size_t

Alexandre Janniaux git at videolan.org
Sat Apr 11 09:13:40 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Apr  9 14:56:57 2020 +0200| [0072883334a4b682e0ccb2e31abf1377cd1349f4] | committer: Alexandre Janniaux

aribcam: use %zu formatter for size_t

Fix warnings when size_t is not the same size as a long unsigned int.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0072883334a4b682e0ccb2e31abf1377cd1349f4
---

 modules/stream_filter/aribcam.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/aribcam.c b/modules/stream_filter/aribcam.c
index 4af82d364a..f1a3c61dc2 100644
--- a/modules/stream_filter/aribcam.c
+++ b/modules/stream_filter/aribcam.c
@@ -197,7 +197,7 @@ static ssize_t Read( stream_t *p_stream, void *p_buf, size_t i_toread )
         else
         {
             if ( i_srcread < 0 )
-                msg_Err( p_stream, "Can't read %lu bytes from source stream: %d", i_toread, i_srcread );
+                msg_Err( p_stream, "Can't read %zu bytes from source stream: %d", i_toread, i_srcread );
             return 0;
         }
 



More information about the vlc-commits mailing list