]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] V4L/videobuf2-memops: use pr_debug for debug messages
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 1 Jun 2011 20:19:22 +0000 (17:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 21:20:34 +0000 (18:20 -0300)
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>
drivers/media/video/videobuf2-memops.c

index 5370a3a7ee25bdba0f90969b542b7ff42ad14a5e..1987e1b13b9594f840a099ffc1f132c88665c787 100644 (file)
@@ -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;
@@ -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);
 
@@ -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);