[vlc-devel] commit: Fix printf format string (Use PRI* or zd when applicable) ( Rémi Duraffort )

git version control git at videolan.org
Thu Jun 18 09:52:19 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 15 22:44:53 2009 +0200| [4d4dc1de005f3b93aee07a47851c4fa97f6087c2] | committer: Rémi Duraffort 

Fix printf format string (Use PRI* or zd when applicable)

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

 modules/stream_filter/rar.c |    2 +-
 modules/stream_out/raop.c   |    2 +-
 modules/video_output/yuv.c  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/rar.c b/modules/stream_filter/rar.c
index a5fd829..0e6e541 100644
--- a/modules/stream_filter/rar.c
+++ b/modules/stream_filter/rar.c
@@ -147,7 +147,7 @@ static int Open ( vlc_object_t *p_this )
 
     /* */
     const rar_file_t *p_file = p_sys->p_file;
-    msg_Dbg( s, "Using RAR stream filter for '%s' %lld(expected %lld) bytes in %d chunks",
+    msg_Dbg( s, "Using RAR stream filter for '%s' %"PRId64"(expected %"PRId64") bytes in %d chunks",
              p_file->psz_name, p_file->i_real_size, p_file->i_size, p_file->i_chunk );
 
     return VLC_SUCCESS;
diff --git a/modules/stream_out/raop.c b/modules/stream_out/raop.c
index db0a2ed..1559f66 100644
--- a/modules/stream_out/raop.c
+++ b/modules/stream_out/raop.c
@@ -1293,7 +1293,7 @@ static int Open( vlc_object_t *p_this )
     /* Random client instance */
     gcry_randomize( &i_client_instance, sizeof( i_client_instance ),
                     GCRY_STRONG_RANDOM );
-    if ( asprintf( &p_sys->psz_client_instance, "%016llX",
+    if ( asprintf( &p_sys->psz_client_instance, "%016"PRIX64,
                    i_client_instance ) < 0 )
     {
         i_err = VLC_ENOMEM;
diff --git a/modules/video_output/yuv.c b/modules/video_output/yuv.c
index 35542eb..19d46c7 100644
--- a/modules/video_output/yuv.c
+++ b/modules/video_output/yuv.c
@@ -320,7 +320,7 @@ static void WriteYUV( vout_thread_t *p_vout, video_format_t fmt,
         i_written = fwrite( p_pic->p_data, 1, i_bytes, p_sys->p_fd );
         if( i_written != i_bytes )
         {
-            msg_Warn( p_vout, "only %d of %d bytes written",
+            msg_Warn( p_vout, "only %zd of %zd bytes written",
                       i_written, i_bytes );
         }
     }




More information about the vlc-devel mailing list