[vlc-commits] test: fix format string
Rémi Denis-Courmont
git at videolan.org
Tue Nov 3 22:00:41 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 3 23:00:26 2015 +0200| [c22697dd6afe0ff2f16ee8a7feb894dc05c85ac7] | committer: Rémi Denis-Courmont
test: fix format string
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c22697dd6afe0ff2f16ee8a7feb894dc05c85ac7
---
test/src/input/stream.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/src/input/stream.c b/test/src/input/stream.c
index 8e733e1..eb4549c 100644
--- a/test/src/input/stream.c
+++ b/test/src/input/stream.c
@@ -24,6 +24,7 @@
#include <vlc_md5.h>
#include <vlc_stream.h>
+#include <inttypes.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -232,8 +233,8 @@ read_at( struct reader **pp_readers, unsigned int i_readers,
const uint8_t *p_peek = NULL;
struct reader *p_reader = pp_readers[i];
- log( "%s: %s %zu @ %lu\n", p_reader->psz_name, p_buf ? "read" : "peek",
- i_read, i_offset );
+ log( "%s: %s %zu @ %"PRIu64"\n", p_reader->psz_name,
+ p_buf ? "read" : "peek", i_read, i_offset );
assert( p_reader->pf_seek( p_reader, i_offset ) != -1 );
i_last_pos = p_reader->pf_tell( p_reader );
@@ -297,7 +298,7 @@ test( struct reader **pp_readers, unsigned int i_readers, const char *psz_md5 )
/* Compare size between each readers */
i_size = pp_readers[0]->pf_getsize( pp_readers[0] );
- log( "stream size: %lu\n", i_size );
+ log( "stream size: %"PRIu64"\n", i_size );
for( unsigned int i = 1; i < i_readers; ++i )
assert( pp_readers[i]->pf_getsize( pp_readers[i] ) == i_size );
More information about the vlc-commits
mailing list