From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: dynamic-debug not built into scx200_acb, scx200_i2c Date: Wed, 10 Aug 2011 16:50:16 -0700 Message-ID: <1313020216.11924.129.camel@Joe-Laptop> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jim Cromie Cc: LKML , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Wed, 2011-08-10 at 15:06 -0600, Jim Cromie wrote: > scx200_acb has several pr_debugs, but theyre not available via dynamic-debug > > Ive been unable to figure out why. > Any ideas ? -DDEBUG forces pr_debug to be output and doesn't allow dynamic_debug for those outputs. from drivers/i2c/busses/Makefile: ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG from printk.h: /* If you are writing a driver, please use dev_dbg instead */ #if defined(DEBUG) #define pr_debug(fmt, ...) \ printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) #elif 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__)