[MPlayer-cvslog] r25539 - trunk/libvo/vo_zr.c

diego subversion at mplayerhq.hu
Sat Dec 29 00:25:02 CET 2007


Author: diego
Date: Sat Dec 29 00:25:02 2007
New Revision: 25539

Log:
Use proper length specifiers in mp_msg calls, fixes the warnings:
vo_zr.c: In function 'init_zoran':
vo_zr.c:228: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
vo_zr.c:228: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'
vo_zr.c:237: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
vo_zr.c:237: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'
vo_zr.c:241: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
vo_zr.c:241: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'


Modified:
   trunk/libvo/vo_zr.c

Modified: trunk/libvo/vo_zr.c
==============================================================================
--- trunk/libvo/vo_zr.c	(original)
+++ trunk/libvo/vo_zr.c	Sat Dec 29 00:25:02 2007
@@ -225,7 +225,7 @@ int init_zoran(zr_info_t *zr, int stretc
 	zr->zrq.size = MJPEG_SIZE;
 
 	if (ioctl(zr->vdes, MJPIOC_REQBUFS, &zr->zrq)) {
-		mp_msg(MSGT_VO, MSGL_ERR, "zr: error requesting %d buffers of size %d\n", zr->zrq.count, zr->zrq.size);
+		mp_msg(MSGT_VO, MSGL_ERR, "zr: error requesting %ld buffers of size %ld\n", zr->zrq.count, zr->zrq.size);
 		return 1;
 	}
 
@@ -234,11 +234,11 @@ int init_zoran(zr_info_t *zr, int stretc
 			PROT_READ|PROT_WRITE, MAP_SHARED, zr->vdes, 0);
 
 	if (zr->buf == MAP_FAILED) {
-		mp_msg(MSGT_VO, MSGL_ERR, "zr: error requesting %d buffers of size %d\n", zr->zrq.count, zr->zrq.size);
+		mp_msg(MSGT_VO, MSGL_ERR, "zr: error requesting %ld buffers of size %ld\n", zr->zrq.count, zr->zrq.size);
 		return 1;
 	}
 	
-	mp_msg(MSGT_VO, MSGL_V, "zr: got %d buffers of size %d (wanted %d buffers of size %d)\n", zr->zrq.count, zr->zrq.size, MJPEG_NBUFFERS, MJPEG_SIZE);
+	mp_msg(MSGT_VO, MSGL_V, "zr: got %ld buffers of size %ld (wanted %d buffers of size %d)\n", zr->zrq.count, zr->zrq.size, MJPEG_NBUFFERS, MJPEG_SIZE);
 	if (zr->zrq.count < MJPEG_NBUFFERS) {
 		mp_msg(MSGT_VO, MSGL_V, "zr: got not enough buffers\n");
 		return 1;



More information about the MPlayer-cvslog mailing list