pr_debug() should not be used in drivers
authorPavel Machek <pavel@suse.cz>
Mon, 7 Aug 2006 23:37:15 +0000 (01:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Aug 2006 21:06:05 +0000 (14:06 -0700)
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>
include/linux/kernel.h

index 181c69cad4e3a45dca58bd6c50c2ae3d3e95f5b1..851aa1bcfc1a25c65db7fd2829e1844fb6086e33 100644 (file)
@@ -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