From: Pavel Machek Date: Mon, 7 Aug 2006 23:37:15 +0000 (+0200) Subject: pr_debug() should not be used in drivers X-Git-Tag: v2.6.18-rc5~112 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cc6daf2349ea07830906e05164256ab36d82697;p=linux-2.6 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 181c69cad4..851aa1bcfc 100644 --- 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