diff options
author | Michael Ellerman <[email protected]> | 2009-04-09 14:48:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2009-04-16 16:17:10 -0700 |
commit | 4ccb457966391295bd9b3644f6bdc9ddd97b6051 (patch) | |
tree | 9e69013dcb736c33be6ce6a8facaa606f7016fbf /fs/jbd2/commit.c | |
parent | 13977091a988fb0d21821c2221ddc920eba36b79 (diff) |
dynamic debug: resurrect old pr_debug() semantics as pr_devel()
pr_debug() used to produce zero code unless DEBUG was #defined. This is
now no longer the case in practice[1].
There are places where it's useful to have debugging printks, but we don't
want them to generate any code in production kernels.
So add a new macro, pr_devel(), for _devel_opment, to provide the old
semantics, ie. if the programmer doesn't explicitly enable debugging, no
code is produced.
[1]: You can turn CONFIG_DYNAMIC_DEBUG off, but it's enabled in at least
one distro kernel, so it's not really a solution.
Signed-off-by: Michael Ellerman <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Greg Banks <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions