From patchwork Thu Jul 18 15:29:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 2829688 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B7330C0AB2 for ; Thu, 18 Jul 2013 15:31:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4F2D201E0 for ; Thu, 18 Jul 2013 15:31:26 +0000 (UTC) Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 055CB201D2 for ; Thu, 18 Jul 2013 15:31:21 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6IFU2VB018941; Thu, 18 Jul 2013 10:30:02 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6IFU1f2004965; Thu, 18 Jul 2013 10:30:01 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Thu, 18 Jul 2013 10:30:01 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6IFTxiP010329; Thu, 18 Jul 2013 10:30:01 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 9D71180627; Thu, 18 Jul 2013 10:29:59 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id CBD5A80626 for ; Thu, 18 Jul 2013 10:29:58 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id r6IFTwca007597 for ; Thu, 18 Jul 2013 10:29:58 -0500 (CDT) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6IFTwNo018679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Jul 2013 10:29:58 -0500 Received: from [216.82.253.67:11905] by server-7.bemta-7.messagelabs.com id DF/B4-08238-5F908E15; Thu, 18 Jul 2013 15:29:57 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-13.tower-158.messagelabs.com!1374161396!8047314!1 X-Originating-IP: [209.85.160.41] 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 26652 invoked from network); 18 Jul 2013 15:29:57 -0000 Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by server-13.tower-158.messagelabs.com with RC4-SHA encrypted SMTP; 18 Jul 2013 15:29:57 -0000 Received: by mail-pb0-f41.google.com with SMTP id rp16so3325225pbb.14 for ; Thu, 18 Jul 2013 08:29:56 -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; bh=xVkrpOWEAVTEPzYHjc2jDlzjfneNPlsbtBsUEHz5DaI=; b=pYVaVWFtqzu/nmJ/0QkrogZLDxEuH3SEnOP01X4QBtIBVGhErGKZXIJbLd8xRglHlJ kgKkELavU3mUQ6DiMr5IQWOqlyI8X5PqIAYmCX/ehIGlOXL7lT6kfGRwE/xLQzj4B2R6 SwcyxWfq7YdVgTCi3EOZzAwKduK0K69OM6rrUN48KSt5sq3sMCwLOJrJXdYMvDPL0srZ XgEVCgOWjwq2+qI529cuwydIvO6c7/nXRc8/HTbr3ufdJ+vBbmJMI/PVeqwgyZsAuNNq w2naayCWt9Fk8yqteJDkJ8KCP9CYdsRGIsHZ8fcQ2IUSNok3f0OP9QF5eAoNSlB0H6Za ku+g== X-Received: by 10.68.253.227 with SMTP id ad3mr12854835pbd.63.1374161396384; Thu, 18 Jul 2013 08:29:56 -0700 (PDT) Received: from localhost.localdomain ([1.23.213.154]) by mx.google.com with ESMTPSA id e7sm1240648pbc.11.2013.07.18.08.29.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jul 2013 08:29:55 -0700 (PDT) From: Prabhakar Lad To: LMML Subject: [PATCH v2 5/5] media: davinci: vpbe: Replace printk with dev_* Date: Thu, 18 Jul 2013 20:59:40 +0530 Message-ID: <1374161380-12762-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 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 --- Posting independent patch of the series, http://www.spinics.net/lists/linux-media/msg65701.html Changes for v2: 1: Fixed logging levels. 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..a3a36e0 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_notice(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_notice(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",