From patchwork Sat Jul 13 08:50:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 2827140 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0317A9F756 for ; Sat, 13 Jul 2013 08:53:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CB612012E for ; Sat, 13 Jul 2013 08:53:46 +0000 (UTC) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2480920127 for ; Sat, 13 Jul 2013 08:53:45 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6D8qYmH032621; Sat, 13 Jul 2013 03:52:34 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6D8qYR0001207; Sat, 13 Jul 2013 03:52:34 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Sat, 13 Jul 2013 03:52:34 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6D8qY5o005604; Sat, 13 Jul 2013 03:52:34 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 952D28062E; Sat, 13 Jul 2013 03:52:34 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 620068062A for ; Sat, 13 Jul 2013 03:51:53 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r6D8pr6H009962 for ; Sat, 13 Jul 2013 03:51:53 -0500 (CDT) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6D8pqjk002305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Jul 2013 03:51:53 -0500 Received: from [216.82.253.147:27677] by server-3.bemta-7.messagelabs.com id DE/C3-30918-82511E15; Sat, 13 Jul 2013 08:51:52 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-5.tower-165.messagelabs.com!1373705511!11875232!1 X-Originating-IP: [209.85.160.44] X-SpamReason: No, hits=0.2 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, RCVD_ILLEGAL_IP,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.9.9; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20588 invoked from network); 13 Jul 2013 08:51:51 -0000 Received: from mail-pb0-f44.google.com (HELO mail-pb0-f44.google.com) (209.85.160.44) by server-5.tower-165.messagelabs.com with RC4-SHA encrypted SMTP; 13 Jul 2013 08:51:51 -0000 Received: by mail-pb0-f44.google.com with SMTP id uo1so9743086pbc.3 for ; Sat, 13 Jul 2013 01:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=yYz/4uhZs8X5fBptbRGZFZRw/kADJKQHivHzWz0KL8U=; b=qQ8TDHVmRb8NBffJvVk6J2yqxJwHFKu9n0es2lt30E11m86GLnTdrnzXBaT3LRGvup 8X8sOJJRj9nqbGiUY/RrIRX+zN8f3+TPBXksrwOEicw/EA09i2KDheqofX2gmonoDoVT Awfgm/nJEXGfFRwsffjBIQZv1D0SD8ck4k2qE7YBWr1HVM1hZOUmwYndq9nBP92RwU19 kPz3aHrupFQww2euCsU5Wz8gaGqEB/ENCvlrMA5cDzX0R/3BrAZ8b91yZCTXyHfjWfe3 VXZm1LpXW0h0Zl3Xsbc4Q2Xn3cP4puscRzqq91UaLFkWtJ0wUmOBimTxrOSEdH76NNLi bmHg== X-Received: by 10.68.106.67 with SMTP id gs3mr45520932pbb.126.1373705511323; Sat, 13 Jul 2013 01:51:51 -0700 (PDT) Received: from localhost.localdomain ([1.23.213.247]) by mx.google.com with ESMTPSA id ne6sm45224222pbc.28.2013.07.13.01.51.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Jul 2013 01:51:50 -0700 (PDT) From: Prabhakar Lad To: LMML Subject: [PATCH 5/5] media: davinci: vpbe: Replace printk with dev_* Date: Sat, 13 Jul 2013 14:20:31 +0530 Message-ID: <1373705431-11500-6-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1373705431-11500-1-git-send-email-prabhakar.csengg@gmail.com> References: <1373705431-11500-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , LKML X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lad, Prabhakar" Use the dev_* message logging API instead of raw printk. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 33b9660..3f32184 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c @@ -595,7 +595,7 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) * matching with device name */ if (NULL == vpbe_dev || NULL == dev) { - printk(KERN_ERR "Null device pointers.\n"); + dev_err(dev, "Null device pointers.\n"); return -ENODEV; } @@ -735,7 +735,7 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) mutex_unlock(&vpbe_dev->lock); - printk(KERN_NOTICE "Setting default output to %s\n", def_output); + dev_info(dev, "Setting default output to %s\n", def_output); ret = vpbe_set_default_output(vpbe_dev); if (ret) { v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default output %s", @@ -743,7 +743,7 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) return ret; } - printk(KERN_NOTICE "Setting default mode to %s\n", def_mode); + dev_info(dev, "Setting default mode to %s\n", def_mode); ret = vpbe_set_default_mode(vpbe_dev); if (ret) { v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default mode %s",