diff options
| author | Jim Cromie <[email protected]> | 2011-12-19 22:11:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-01-24 20:46:44 +0000 |
| commit | b558c96ffa53f4b3dd52b774e4fb7a52982ab52b (patch) | |
| tree | c178b95b2f1bb9e146d4f33f287ab37c2dab119a /lib/dynamic_debug.c | |
| parent | dynamic_debug: drop enabled field from struct _ddebug, use _DPRINTK_FLAGS_PRINT (diff) | |
| download | kernel-b558c96ffa53f4b3dd52b774e4fb7a52982ab52b.tar.gz kernel-b558c96ffa53f4b3dd52b774e4fb7a52982ab52b.zip | |
dynamic_debug: make dynamic-debug supersede DEBUG ccflag
If CONFIG_DYNAMIC_DEBUG is defined, honor it over DEBUG, so that
pr_debug()s are controllable, instead of always-on. When DEBUG is
also defined, change _DPRINTK_FLAGS_DEFAULT to enable printing by
default.
Also adding _DPRINTK_FLAGS_INCL_MODNAME would be nice, but there are
numerous cases of pr_debug(NAME ": ...), which would result in double
printing of module-name. So defer this until things settle.
Cc: David Miller <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Jim Cromie <[email protected]>
Signed-off-by: Jason Baron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
