]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] mem2mem_testdev: Use pr_err instead of printk
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 24 Sep 2012 05:17:47 +0000 (02:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 14:51:27 +0000 (11:51 -0300)
printk(KERN_ERR...) is replaced with pr_err to silence checkpatch
warning.
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ...
then pr_err(...  to printk(KERN_ERR ...

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/mem2mem_testdev.c

index 8b27a7e2a09a3758e7d1d71fb1473772c87a87ba..7627335816e4cf90fd1a19585154cc870167958d 100644 (file)
@@ -397,8 +397,7 @@ static void device_isr(unsigned long priv)
        curr_ctx = v4l2_m2m_get_curr_priv(m2mtest_dev->m2m_dev);
 
        if (NULL == curr_ctx) {
-               printk(KERN_ERR
-                       "Instance released before the end of transaction\n");
+               pr_err("Instance released before the end of transaction\n");
                return;
        }