Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205AbbBYMJJ (ORCPT ); Wed, 25 Feb 2015 07:09:09 -0500 Received: from lists.s-osg.org ([54.187.51.154]:39449 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752643AbbBYMJH (ORCPT ); Wed, 25 Feb 2015 07:09:07 -0500 Date: Wed, 25 Feb 2015 09:09:01 -0300 From: Mauro Carvalho Chehab To: Joe Perches Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: em28xx replace printk in dprintk macros Message-ID: <20150225090901.64bfd6ef@recife.lan> In-Reply-To: <1424835950.11070.5.camel@perches.com> References: <1424804027-7790-1-git-send-email-shuahkh@osg.samsung.com> <20150224190315.124b71f3@recife.lan> <54ED0C0D.10704@osg.samsung.com> <1424835950.11070.5.camel@perches.com> Organization: Samsung X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1390 Lines: 36 Em Tue, 24 Feb 2015 19:45:50 -0800 Joe Perches escreveu: > 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. Such mechanism would make sense for media drivers. Regards, Mauro -- 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/