]> git.karo-electronics.de Git - linux-beck.git/commit
dynamic_debug: make dynamic-debug supersede DEBUG ccflag
authorJim Cromie <jim.cromie@gmail.com>
Mon, 19 Dec 2011 22:11:18 +0000 (17:11 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:46:44 +0000 (12:46 -0800)
commitb558c96ffa53f4b3dd52b774e4fb7a52982ab52b
treec178b95b2f1bb9e146d4f33f287ab37c2dab119a
parent87e6f968339bcdda56b39572c7e63331192296a0
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 <davem@davemloft.net>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/device.h
include/linux/dynamic_debug.h
include/linux/netdevice.h
include/linux/printk.h