projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9539ee
)
pr_debug() should not be used in drivers
author
Pavel Machek
<pavel@suse.cz>
Mon, 7 Aug 2006 23:37:15 +0000
(
01:37
+0200)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 181c69cad4e3a45dca58bd6c50c2ae3d3e95f5b1..851aa1bcfc1a25c65db7fd2829e1844fb6086e33 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-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