Re: [PATCH 03/25] Unionfs: display informational messages only if debug is on

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Wednesday, September 26, 2007 - 8:24 am

On Sep 26 2007 10:01, Erez Zadok wrote:

Generally, the rule is "don't (re)invent another debug system"


Oh that's either old code or code that has not been reviewed properly.
Fact is that I have been made aware of pr_debug() "often enough"
on netfilter-devel, and it looks like a good idea.


Surprise, pr_debug() is just that all nicely wrapped up.
Want debug? Do it like this.

#ifdef CONFIG_UNIONFS_DEBUG
#	define DEBUG 1
#endif

and pr_debug() works magic.


No I do not think so. But when you grep for dprintk, you should also
grep for DEBUG, to be fair :p

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL -mm] 00/25 Unionfs updates/cleanups/fixes, Erez Zadok, (Tue Sep 25, 8:09 pm)
[PATCH 01/25] Unionfs: Simplify unionfs_get_nlinks, Erez Zadok, (Tue Sep 25, 8:09 pm)
[PATCH 02/25] Unionfs: Remove unused #defines, Erez Zadok, (Tue Sep 25, 8:09 pm)
[PATCH 04/25] Unionfs: cache-coherency fixes, Erez Zadok, (Tue Sep 25, 8:09 pm)
[PATCH 06/25] Unionfs: minor coding style updates, Erez Zadok, (Tue Sep 25, 8:09 pm)
Re: [PATCH 03/25] Unionfs: display informational messages ..., Jan Engelhardt, (Wed Sep 26, 8:24 am)