aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-13 13:39:29 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:08:00 -0400
commitea8df7e09d2226c321c234a8f736fdb167a046cb (patch)
treef63527f3535e1ac3dbb209229156f3ce6eb36aa0 /drivers/media/video/em28xx/em28xx-video.c
parentd7aa80207babe694b316a48200b096cf0336ecb3 (diff)
V4L/DVB (7542): em28xx: Fix some warnings
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 4e6cc612a994..6049a2278190 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -197,7 +197,7 @@ static void em28xx_copy_video(struct em28xx *dev,
197 lencopy = lencopy > remain ? remain : lencopy; 197 lencopy = lencopy > remain ? remain : lencopy;
198 198
199 if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) { 199 if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) {
200 em28xx_isocdbg("Overflow of %i bytes past buffer end (1)\n", 200 em28xx_isocdbg("Overflow of %zi bytes past buffer end (1)\n",
201 ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size)); 201 ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size));
202 lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite; 202 lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite;
203 } 203 }
@@ -217,7 +217,7 @@ static void em28xx_copy_video(struct em28xx *dev,
217 BUG_ON(lencopy <= 0); 217 BUG_ON(lencopy <= 0);
218 218
219 if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) { 219 if((char*)startwrite + lencopy > (char*)outp + buf->vb.size) {
220 em28xx_isocdbg("Overflow of %i bytes past buffer end (2)\n", 220 em28xx_isocdbg("Overflow of %zi bytes past buffer end (2)\n",
221 ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size)); 221 ((char*)startwrite + lencopy) - ((char*)outp + buf->vb.size));
222 lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite; 222 lencopy = remain = (char*)outp + buf->vb.size - (char*)startwrite;
223 } 223 }