From patchwork Mon Sep 24 06:17:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11656 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 47EB723F66 for ; Mon, 24 Sep 2012 06:21:33 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id E4CD3A18205 for ; Mon, 24 Sep 2012 06:21:32 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9154810iej.11 for ; Sun, 23 Sep 2012 23:21:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=C6fA3pKziFVIillEGLrXvX3gyw34pQrQgd/xUKJo9Kg=; b=JZcOe0+WMDb5zbqjyApK8U1L3mZaWV4HD7ebAGHiS9jsEDLLNLMKQuvK6Xblcg7oNt B4JGRjdHHv+Q583KZjcGyfd3Orbfg0cyDTieAI+HlW4xTgvLcOSIpxux3TGN9HgJFJfT n0uFzKJf02GHPt8+03H958muynvpkVJLnBowXQIiOcSUew0cWaSgxKkXg5Sbcagre8XT 8otPoVJRFr7LsVzLz+yJlwCNuHio99JTkAJtro8RiOm56Z0FpevGAl7TRM0uP1U88owb XTVbPzm0GSSQpiQA6IZcxB1IXQrF2I6PmTf11/zTtSGn3sLGsFp1cXwxo8uG19xQ8FuG QiXw== Received: by 10.50.217.229 with SMTP id pb5mr4368699igc.28.1348467692610; Sun, 23 Sep 2012 23:21:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp228637igc; Sun, 23 Sep 2012 23:21:32 -0700 (PDT) Received: by 10.68.224.161 with SMTP id rd1mr34621734pbc.49.1348467692094; Sun, 23 Sep 2012 23:21:32 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id s7si6036439pax.190.2012.09.23.23.21.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 23:21:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so12518347pbc.37 for ; Sun, 23 Sep 2012 23:21:31 -0700 (PDT) Received: by 10.68.131.2 with SMTP id oi2mr33921125pbb.78.1348467691884; Sun, 23 Sep 2012 23:21:31 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ho7sm9161024pbc.3.2012.09.23.23.21.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 23:21:31 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, sachin.kamat@linaro.org, m.szyprowski@samsung.com, pawel@osciak.com, patches@linaro.org Subject: [PATCH 3/4] [media] mem2mem_testdev: Use pr_err instead of printk Date: Mon, 24 Sep 2012 11:47:47 +0530 Message-Id: <1348467468-19854-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1348467468-19854-1-git-send-email-sachin.kamat@linaro.org> References: <1348467468-19854-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlk4UziC37juSiXMPVJyn/5UDCwYhHHe96ikOdUFYAuhrjBFGccyxsxJcYAM0fLv8hQ9jrS 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 --- drivers/media/platform/mem2mem_testdev.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 570e880..f7d15ec 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -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; }