From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:50071 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762301Ab2FVPVT (ORCPT ); Fri, 22 Jun 2012 11:21:19 -0400 Message-ID: <1340378474.4491.36.camel@jlt3.sipsolutions.net> (sfid-20120622_172123_347166_378FEA80) Subject: Re: dynamic debug From: Johannes Berg To: Joe Perches Cc: David Miller , Jim Cromie , Jason Baron , linux-wireless Date: Fri, 22 Jun 2012 17:21:14 +0200 In-Reply-To: <1340376114.31821.15.camel@joe2Laptop> References: <1340367797.4491.21.camel@jlt3.sipsolutions.net> <1340375177.31821.7.camel@joe2Laptop> <1340375643.4491.26.camel@jlt3.sipsolutions.net> <1340376114.31821.15.camel@joe2Laptop> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, 2012-06-22 at 07:41 -0700, Joe Perches wrote: > > > > That doesn't make any sense at > > > > all, and requires teaching everybody new tricks, so I'm basically > > > > reverting it for now in favour of pr_info() instead of pr_debug(). > > > > > > Why not just add #define DEBUG? > > > > I guess that works? > > That works. Are you sure? It doesn't really seem to work ... #if defined(CONFIG_DYNAMIC_DEBUG) /* dynamic_pr_debug() uses pr_fmt() internally so we don't need it here */ #define pr_debug(fmt, ...) \ dynamic_pr_debug(fmt, ##__VA_ARGS__) #elif defined(DEBUG) #define pr_debug(fmt, ...) \ printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) So basically, if you have CONFIG_DYNAMIC_DEBUG, you *still* need to enable it with the dynamic debug framework, right? johannes