Files
linux-legacy/include/linux
Michael Ellerman 4ccb457966 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 <michael@ellerman.id.au>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Greg Banks <gnb@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-16 16:17:10 -07:00
..
…
…
…
2009-04-07 10:23:34 +01:00
…
…
2009-03-31 09:56:26 +01:00
…
2009-04-08 00:00:33 -07:00
…
…
…
…
2009-04-05 02:14:15 -04:00
…
…
…
…
…
…
…
…
2009-04-06 20:00:51 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:23 -07:00
2009-04-01 08:59:23 -07:00
…
…
…
…
…
…
2009-04-15 08:28:09 +02:00
…
…
…
2009-04-07 08:59:11 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-03 14:53:32 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-27 14:43:59 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-03 14:53:32 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-24 12:35:17 +01:00
…
…
…
…
…
…
2009-03-30 15:14:53 +02:00
…
…
2009-04-03 09:48:29 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-08 14:13:03 +02:00
2009-04-02 19:04:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-13 15:04:29 -07:00
2009-04-16 16:17:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-02 19:04:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-06 16:06:26 +01:00
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:17 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-07 08:12:38 +02:00
…
…
…
…
2009-04-02 19:04:48 -07:00
…
…
…
2009-03-26 10:56:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-03 17:41:23 -07:00
2009-04-01 13:28:15 -04:00
2009-04-03 17:41:12 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:13 -07:00
…
…
…
…
2009-04-13 15:04:32 -07:00
2009-04-10 21:36:18 +02:00
…
…
…
…
2009-04-13 14:51:23 -07:00
…
…
…
…
…
…
…
2009-04-01 08:59:13 -07:00
…
…
…
…
…
2009-03-30 15:22:01 +02:00
…
2009-03-26 02:18:35 +01:00
…
…
…
…
…
…
…
…
2009-03-30 14:28:58 -07:00
…
…
…
…
…
…
…
…
…
2009-04-01 08:59:24 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2009-04-08 14:33:38 -07:00
…
…
…
…
…
…
2009-04-13 15:04:29 -07:00
…
2009-04-03 12:23:06 +02:00
…
2009-04-03 16:42:35 +01:00
2009-04-03 12:23:06 +02:00
…
…
…
…
…
…
…
…
…
…
…
2009-03-27 12:18:56 -04:00
…
…
…
…
…
…
…
…
2009-04-01 08:59:15 -07:00
…
…
2009-04-02 19:05:01 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-26 18:14:21 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…