mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
V4L/DVB (7542): em28xx: Fix some warnings
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
d7aa80207b
commit
ea8df7e09d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue