Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roel Kluin <12o3l@...>
Cc: Al Viro <viro@...>, Mathieu Segaud <mathieu.segaud@...>, Richard Knutsson <ricknu-0@...>, <linux-pcmcia@...>, <linux-kernel@...>, <akpm@...>, <linux-ext4@...>
Date: Friday, January 11, 2008 - 6:29 am

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.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [Coding Style]: fs/ext{3,4}/balloc.c, Mathieu Segaud, (Fri Jan 4, 9:21 am)
[PATCH] [Coding Style]: fs/ext{3,4}/bitmap.c, Mathieu Segaud, (Fri Jan 4, 9:21 am)
[PATCH] [Coding Style]: fs/ext{3,4}/dir.c, Mathieu Segaud, (Fri Jan 4, 9:21 am)
[PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Mathieu Segaud, (Fri Jan 4, 9:21 am)
Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Richard Knutsson, (Fri Jan 4, 9:41 am)
Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Andreas Dilger, (Sat Jan 5, 12:12 am)
Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Dmitri Vorobiev, (Sat Jan 5, 12:48 am)
Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Dmitri Vorobiev, (Sat Jan 5, 12:47 am)
Re: [PATCH] [Coding Style]: fs/ext{3,4}/ext{3,4}_jbd{,2}.c, Paul Mundt, (Fri Jan 11, 6:29 am)