changeset 32915:0cd5c0498962

Provide proper conversion specification for long and unsigned variables.
author ib
date Wed, 02 Mar 2011 17:38:59 +0000
parents 692c174b6dc9
children 5fdd52feb5ea
files gui/bitmap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/bitmap.c	Wed Mar 02 17:30:14 2011 +0000
+++ b/gui/bitmap.c	Wed Mar 02 17:38:59 2011 +0000
@@ -111,7 +111,7 @@
     av_freep(&data);
 
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[png] filename: %s.\n", fname);
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[png]  size: %dx%d bits: %d\n", bf->Width, bf->Height, bf->BPP);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[png]  size: %lux%lu bits: %u\n", bf->Width, bf->Height, bf->BPP);
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[png]  imagesize: %lu\n", bf->ImageSize);
 
     return !(decode_ok && bf->BPP);
@@ -213,7 +213,7 @@
     out->BPP       = 1;
     out->ImageSize = (out->Width * out->Height + 7) / 8;
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[c32to1] imagesize: %d\n", out->ImageSize);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[c32to1] imagesize: %lu\n", out->ImageSize);
 
     out->Image = calloc(1, out->ImageSize);