Commit 296372e3 authored by Márton Németh's avatar Márton Németh Committed by Mauro Carvalho Chehab

V4L/DVB (13415): videobuf-core: explicitly cast page count

Explicitly cast page count in the debug message.
Signed-off-by: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b1858190
...@@ -430,8 +430,9 @@ int videobuf_reqbufs(struct videobuf_queue *q, ...@@ -430,8 +430,9 @@ int videobuf_reqbufs(struct videobuf_queue *q,
count = VIDEO_MAX_FRAME; count = VIDEO_MAX_FRAME;
size = 0; size = 0;
q->ops->buf_setup(q, &count, &size); q->ops->buf_setup(q, &count, &size);
dprintk(1, "reqbufs: bufs=%d, size=0x%x [%d pages total]\n", dprintk(1, "reqbufs: bufs=%d, size=0x%x [%u pages total]\n",
count, size, (count*PAGE_ALIGN(size))>>PAGE_SHIFT); count, size,
(unsigned int)((count*PAGE_ALIGN(size))>>PAGE_SHIFT) );
retval = __videobuf_mmap_setup(q, count, size, req->memory); retval = __videobuf_mmap_setup(q, count, size, req->memory);
if (retval < 0) { if (retval < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment