Explorar el Código

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>
Pavel Machek hace 19 años
padre
commit
1cc6daf234
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      include/linux/kernel.h

+ 1 - 0
include/linux/kernel.h

@@ -210,6 +210,7 @@ extern enum system_states {
 extern void dump_stack(void);
 extern void dump_stack(void);
 
 
 #ifdef DEBUG
 #ifdef DEBUG
+/* If you are writing a driver, please use dev_dbg instead */
 #define pr_debug(fmt,arg...) \
 #define pr_debug(fmt,arg...) \
 	printk(KERN_DEBUG fmt,##arg)
 	printk(KERN_DEBUG fmt,##arg)
 #else
 #else