From patchwork Tue Feb 24 18:53:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5874781 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 91E8CBF440 for ; Tue, 24 Feb 2015 18:54:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB368201FB for ; Tue, 24 Feb 2015 18:54:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7AD3201DD for ; Tue, 24 Feb 2015 18:54:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753995AbbBXSxv (ORCPT ); Tue, 24 Feb 2015 13:53:51 -0500 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:45143 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753131AbbBXSxt (ORCPT ); Tue, 24 Feb 2015 13:53:49 -0500 Received: from resomta-po-13v.sys.comcast.net ([96.114.154.237]) by resqmta-po-01v.sys.comcast.net with comcast id wJtN1p00257bBgG01JtoxH; Tue, 24 Feb 2015 18:53:48 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-13v.sys.comcast.net with comcast id wJto1p00J0MU7Qa01JtoyE; Tue, 24 Feb 2015 18:53:48 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 5810B40115; Tue, 24 Feb 2015 11:53:48 -0700 (MST) From: Shuah Khan To: mchehab@osg.samsung.com Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: em28xx replace printk in dprintk macros Date: Tue, 24 Feb 2015 11:53:47 -0700 Message-Id: <1424804027-7790-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1424804028; bh=6HCtLjU2mlh+j82hLoEN1YGY7UyENBTWAoAjgG+oy4c=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=GXlYXKIruPrqlSJfrLtJ7KiJL9koqRLIwMllG+VzoZBPNDKv/LWnMBtJQoLQdw1LH hb3XenzE1WAoPI3PM0HEyrRzDKbip2lztWGw/2fuS8okkcrw1uejNpVu/qrF5bIzZR +Ik9we/nXpPau+Nkj5S90oxeFLVloOHtO0EdETV75lpgsPKxqT7lIOSjuPlJ9OPHYd uWLjGu3scIaknBXSzdnixMShWeRo2ij1ddUa08GGfDEaN/FpJMzACj3K4nHsKASAWK 6un3xyOG/TwnbqgL9oT2e/SkSpcJFtYqcXY0lc/1f+TJu940ZiZ9dvEHl2GN4niE48 ViD1qMteiWQNQ== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 Replace printk macro in dprintk macros in em28xx audio, dvb, and input files with pr_* equivalent routines. Signed-off-by: Shuah Khan --- drivers/media/usb/em28xx/em28xx-audio.c | 3 +-- drivers/media/usb/em28xx/em28xx-dvb.c | 2 +- drivers/media/usb/em28xx/em28xx-input.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c index 49a5f95..93d89f2 100644 --- a/drivers/media/usb/em28xx/em28xx-audio.c +++ b/drivers/media/usb/em28xx/em28xx-audio.c @@ -55,8 +55,7 @@ MODULE_PARM_DESC(debug, "activates debug info"); #define dprintk(fmt, arg...) do { \ if (debug) \ - printk(KERN_INFO "em28xx-audio %s: " fmt, \ - __func__, ##arg); \ + pr_info("em28xx-audio %s: " fmt, __func__, ##arg); \ } while (0) static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c index aee70d4..8826054 100644 --- a/drivers/media/usb/em28xx/em28xx-dvb.c +++ b/drivers/media/usb/em28xx/em28xx-dvb.c @@ -71,7 +71,7 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); #define dprintk(level, fmt, arg...) do { \ if (debug >= level) \ - printk(KERN_DEBUG "%s/2-dvb: " fmt, dev->name, ## arg); \ + pr_debug("%s/2-dvb: " fmt, dev->name, ## arg); \ } while (0) struct em28xx_dvb { diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c index 4007356..e99108b 100644 --- a/drivers/media/usb/em28xx/em28xx-input.c +++ b/drivers/media/usb/em28xx/em28xx-input.c @@ -43,7 +43,7 @@ MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); #define dprintk(fmt, arg...) \ if (ir_debug) { \ - printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ + pr_debug("%s/ir: " fmt, ir->name, ## arg); \ } /**********************************************************