summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-vmalloc.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-07 00:08:24 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-10 05:02:50 +0200
commite78dcf55520769471c66024b13df7e9e592436f4 (patch)
treec5c3ee767ceb0a80faa9782547ed2e2d30e896a7 /drivers/media/video/videobuf-vmalloc.c
parentV4L/DVB (6261): Cleans mem->vmalloc after vfree (diff)
downloadlinux-e78dcf55520769471c66024b13df7e9e592436f4.tar.xz
linux-e78dcf55520769471c66024b13df7e9e592436f4.zip
V4L/DVB (6262): An allocation error message were being printed as a debug msg
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videobuf-vmalloc.c')
-rw-r--r--drivers/media/video/videobuf-vmalloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index 6ef4f523689a..b2abfc9d9a8e 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -140,7 +140,6 @@ static int __videobuf_iolock (struct videobuf_queue* q,
MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM);
-
pages = PAGE_ALIGN(vb->size) >> PAGE_SHIFT;
/* Currently, doesn't support V4L2_MEMORY_OVERLAY */
@@ -153,7 +152,7 @@ static int __videobuf_iolock (struct videobuf_queue* q,
/* FIXME: should be tested with kernel mmap mem */
mem->vmalloc=vmalloc_user (PAGE_ALIGN(vb->size));
if (NULL == mem->vmalloc) {
- dprintk(1,"vmalloc (%d pages) failed\n",pages);
+ printk(KERN_ERR "vmalloc (%d pages) failed\n",pages);
return -ENOMEM;
}