Skip to content

Commit

Permalink
pr_debug() should not be used in drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Machek authored and Greg Kroah-Hartman committed Aug 11, 2006
1 parent e9539ee commit 1cc6daf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cc6daf

Please sign in to comment.