Skip to content

Commit

Permalink
[media] V4L/videobuf2-memops: use pr_debug for debug messages
Browse files Browse the repository at this point in the history
Otherwise they clutter the dmesg buffer even on a production kernel.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Uwe Kleine-König authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 147b68c commit 7f116b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/videobuf2-memops.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int vb2_mmap_pfn_range(struct vm_area_struct *vma, unsigned long paddr,

vma->vm_ops->open(vma);

printk(KERN_DEBUG "%s: mapped paddr 0x%08lx at 0x%08lx, size %ld\n",
pr_debug("%s: mapped paddr 0x%08lx at 0x%08lx, size %ld\n",
__func__, paddr, vma->vm_start, size);

return 0;
Expand All @@ -195,7 +195,7 @@ static void vb2_common_vm_open(struct vm_area_struct *vma)
{
struct vb2_vmarea_handler *h = vma->vm_private_data;

printk(KERN_DEBUG "%s: %p, refcount: %d, vma: %08lx-%08lx\n",
pr_debug("%s: %p, refcount: %d, vma: %08lx-%08lx\n",
__func__, h, atomic_read(h->refcount), vma->vm_start,
vma->vm_end);

Expand All @@ -213,7 +213,7 @@ static void vb2_common_vm_close(struct vm_area_struct *vma)
{
struct vb2_vmarea_handler *h = vma->vm_private_data;

printk(KERN_DEBUG "%s: %p, refcount: %d, vma: %08lx-%08lx\n",
pr_debug("%s: %p, refcount: %d, vma: %08lx-%08lx\n",
__func__, h, atomic_read(h->refcount), vma->vm_start,
vma->vm_end);

Expand Down

0 comments on commit 7f116b3

Please sign in to comment.