From 41e0e5c06fead266ce179424b18134aeac2c5762 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 15 Feb 2006 02:24:18 +0000 Subject: initial import of Xorcom Astribank driver (issue #6452, with minor mods) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@949 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/zap_debug.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 xpp/zap_debug.h (limited to 'xpp/zap_debug.h') diff --git a/xpp/zap_debug.h b/xpp/zap_debug.h new file mode 100644 index 0000000..3f4651a --- /dev/null +++ b/xpp/zap_debug.h @@ -0,0 +1,16 @@ +#ifndef ZAP_DEBUG_H +#define ZAP_DEBUG_H + +#define DBG(fmt, ...) \ + ((print_dbg) && printk(KERN_DEBUG "DBG-%s: %s: " fmt, \ + THIS_MODULE->name, __FUNCTION__, ## __VA_ARGS__)) +#define INFO(fmt, ...) printk(KERN_INFO "INFO-%s: " fmt, THIS_MODULE->name, ## __VA_ARGS__) +#define NOTICE(fmt, ...) printk(KERN_NOTICE "NOTICE-%s: " fmt, THIS_MODULE->name, ## __VA_ARGS__) +#define ERR(fmt, ...) printk(KERN_ERR "ERR-%s: " fmt, THIS_MODULE->name, ## __VA_ARGS__) + + +void dump_poll(int print_dbg, const char *msg, int poll); +char *event2str(int event); +void dump_sigtype(int print_dbg, const char *msg, int sigtype); + +#endif /* ZAP_DEBUG_H */ -- cgit v1.2.3