From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:54115 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755794Ab2FVRaP (ORCPT ); Fri, 22 Jun 2012 13:30:15 -0400 Message-ID: <1340386209.4491.39.camel@jlt3.sipsolutions.net> (sfid-20120622_193019_447388_4526342B) Subject: Re: dynamic debug From: Johannes Berg To: Joe Perches Cc: David Miller , Jim Cromie , Jason Baron , linux-wireless Date: Fri, 22 Jun 2012 19:30:09 +0200 In-Reply-To: <1340379153.31821.21.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> <1340378474.4491.36.camel@jlt3.sipsolutions.net> <1340379153.31821.21.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 08:32 -0700, Joe Perches wrote: > > 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? > > No. > > In dynamic_debug.h, there's a mechanism to enable all > dynamic_pr_debug lines when DEBUG is #defined > > #if defined DEBUG > #define _DPRINTK_FLAGS_DEFAULT _DPRINTK_FLAGS_PRINT > #else > #define _DPRINTK_FLAGS_DEFAULT 0 > #endif Gee, ok, so this was only added in 3.3 ... johannes