# HG changeset patch # User diego # Date 1198884302 0 # Node ID 93af51aec10337a3d308e1025feae65770841f65 # Parent c0e1528c743260969df035aa6171b1f63f72b8e3 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' diff -r c0e1528c7432 -r 93af51aec103 libvo/vo_zr.c --- a/libvo/vo_zr.c Fri Dec 28 23:12:20 2007 +0000 +++ b/libvo/vo_zr.c Fri Dec 28 23:25:02 2007 +0000 @@ -225,7 +225,7 @@ 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 @@ 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;