User: Password:
|
|
Subscribe / Log in / New account

#define DEBUG

#define DEBUG

Posted Mar 27, 2011 19:47 UTC (Sun) by tardyp (subscriber, #58715)
Parent article: The dynamic debugging interface

> If the CONFIG_DYNAMIC_DEBUG option is not set, the above functions will be turned
> into normal printk() statements at the KERN_DEBUG level.

this, only if DEBUG is defined... see source code:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-...

Usually people type #define DEBUG at beginning of file.
Some subsystems add -DDEBUG for their files if CONFIG_[SUBSYSTEM]_DEBUG is set.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds