Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbbBYDpz (ORCPT ); Tue, 24 Feb 2015 22:45:55 -0500 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:44307 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752331AbbBYDpx (ORCPT ); Tue, 24 Feb 2015 22:45:53 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6261:10004:10400:10848:10967:11232:11657:11658:11914:12043:12296:12517:12519:12663:12740:13019:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: power36_8a7c962b66e3e X-Filterd-Recvd-Size: 1897 Message-ID: <1424835950.11070.5.camel@perches.com> Subject: Re: [PATCH] media: em28xx replace printk in dprintk macros From: Joe Perches To: Shuah Khan Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 24 Feb 2015 19:45:50 -0800 In-Reply-To: <54ED0C0D.10704@osg.samsung.com> References: <1424804027-7790-1-git-send-email-shuahkh@osg.samsung.com> <20150224190315.124b71f3@recife.lan> <54ED0C0D.10704@osg.samsung.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 31 On Tue, 2015-02-24 at 16:41 -0700, Shuah Khan wrote: > On 02/24/2015 03:03 PM, Mauro Carvalho Chehab wrote: > > Em Tue, 24 Feb 2015 11:53:47 -0700 Shuah Khan escreveu: > >> Replace printk macro in dprintk macros in em28xx audio, dvb, > >> and input files with pr_* equivalent routines. [] > >> diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c [] > >> #define dprintk(fmt, arg...) \ > >> if (ir_debug) { \ > >> - printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ > >> + pr_debug("%s/ir: " fmt, ir->name, ## arg); \ > > > > NACK. > > > > This is the worse of two words, as it would require both to enable > > each debug line via dynamic printk setting and to enable ir_debug. > Ah. I missed that. Sorry for the noise. It's At some point, I'm going to propose a standard mechanism similar to netif_ that does bitmap matching for dynamic_debug and generic debugging. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/