code cleanup - refactor module_printk()
* Remove multiple definitions * Move canonical one to include/dahdi/kernel.h Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10458 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
committed by
Tzafrir Cohen
parent
4762177be0
commit
9f37999c19
@@ -1516,6 +1516,10 @@ struct mutex {
|
||||
#define DAHDI_PSEUDO 255
|
||||
|
||||
/* prink-wrapper macros */
|
||||
|
||||
#define module_printk(level, fmt, args...) \
|
||||
printk(level "%s: " fmt, THIS_MODULE->name, ## args)
|
||||
|
||||
#define DAHDI_PRINTK(level, category, fmt, ...) \
|
||||
printk(KERN_ ## level "%s%s-%s: " fmt, #level, category, \
|
||||
THIS_MODULE->name, ## __VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user