summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-core.c
diff options
context:
space:
mode:
authorMárton Németh2009-11-22 22:03:05 +0100
committerMauro Carvalho Chehab2009-12-05 21:41:46 +0100
commit296372e3b04a41853df1be6623a5bd634051458c (patch)
treec77fc111da00de72c10b3d14f36e3c953b5a5d16 /drivers/media/video/videobuf-core.c
parentV4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string (diff)
downloadkernel-qcow2-linux-296372e3b04a41853df1be6623a5bd634051458c.tar.gz
kernel-qcow2-linux-296372e3b04a41853df1be6623a5bd634051458c.tar.xz
kernel-qcow2-linux-296372e3b04a41853df1be6623a5bd634051458c.zip
V4L/DVB (13415): videobuf-core: explicitly cast page count
Explicitly cast page count in the debug message. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-core.c')
-rw-r--r--drivers/media/video/videobuf-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 136bc3496c87..bb0a1c8de414 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -430,8 +430,9 @@ int videobuf_reqbufs(struct videobuf_queue *q,
count = VIDEO_MAX_FRAME;
size = 0;
q->ops->buf_setup(q, &count, &size);
- dprintk(1, "reqbufs: bufs=%d, size=0x%x [%d pages total]\n",
- count, size, (count*PAGE_ALIGN(size))>>PAGE_SHIFT);
+ dprintk(1, "reqbufs: bufs=%d, size=0x%x [%u pages total]\n",
+ count, size,
+ (unsigned int)((count*PAGE_ALIGN(size))>>PAGE_SHIFT) );
retval = __videobuf_mmap_setup(q, count, size, req->memory);
if (retval < 0) {