V4L/DVB (7542): em28xx: Fix some warnings
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 13 Apr 2008 17:39:29 +0000 (14:39 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:08:00 +0000 (14:08 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-video.c

index 4e6cc612a99461c92928875a7d34e88822042f76..6049a2278190c3fc62ce1ed64ee5adfcf67a1a31 100644 (file)
@@ -197,7 +197,7 @@ static void em28xx_copy_video(struct em28xx *dev,
        lencopy = lencopy > remain ? remain : lencopy;
 
        if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) {
-               em28xx_isocdbg("Overflow of %i bytes past buffer end (1)\n",
+               em28xx_isocdbg("Overflow of %zi bytes past buffer end (1)\n",
                               ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size));
                lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite;
        }
@@ -217,7 +217,7 @@ static void em28xx_copy_video(struct em28xx *dev,
                BUG_ON(lencopy <= 0);
 
                if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) {
-                       em28xx_isocdbg("Overflow of %i bytes past buffer end (2)\n",
+                       em28xx_isocdbg("Overflow of %zi bytes past buffer end (2)\n",
                                       ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size));
                        lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite;
                }