From: Pavel Machek Date: Mon, 7 Aug 2006 23:37:15 +0000 (+0200) Subject: pr_debug() should not be used in drivers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1cc6daf2349ea07830906e05164256ab36d82697;p=linux-beck.git 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 181c69cad4e3..851aa1bcfc1a 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