On Fri, Jan 11, 2008 at 10:45:30AM +0100, Roel Kluin wrote:Close. But in this case #define DEBUG is already instrumented by the subsystem-wide debug option if it's enabled, so it's preferable to use that and just drop the special debug Kconfig option completely. Take a look at how CONFIG_PCMCIA_DEBUG is handled. With DEBUG()->pr_debug() conversion here you've silently dropped the __func__ prefixing. Note that dev_dbg() is usually preferred when you can get a hold of a struct device pointer, as it takes care of prettifying the output with the driver name and so on, rather than the convention of adding a prefix. If you can't get at the struct device pointer, you'll probably just want to insert the __func__ prefixing manually at the callsites. --
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
