summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-02-09 15:24:40 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-02-09 15:24:40 +0000
commit4c05c1b997ebd8812f753e15ec29b587ee9eec5b (patch)
tree93aa7cb223d6d1f406324018e3613c65a056cf39 /include
parent812d08a606027b6b1b507562db286a418f39056c (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index b64069e..882d31e 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -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__)