mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
pr_debug() should not be used in drivers
pr_debug() should not be used from drivers, add comment saying that. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e9539ee73a
commit
1cc6daf234
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ extern enum system_states {
|
|||
extern void dump_stack(void);
|
||||
|
||||
#ifdef DEBUG
|
||||
/* If you are writing a driver, please use dev_dbg instead */
|
||||
#define pr_debug(fmt,arg...) \
|
||||
printk(KERN_DEBUG fmt,##arg)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue