diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-15 02:24:18 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-15 02:24:18 +0000 |
commit | 41e0e5c06fead266ce179424b18134aeac2c5762 (patch) | |
tree | 246b5055fddf29d43c4d1a7c195ff3f3e1460ac4 /xpp/zap_debug.h | |
parent | 6aa681528c72a21a011883dcdcd35130bd066eac (diff) |
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
Diffstat (limited to 'xpp/zap_debug.h')
-rw-r--r-- | xpp/zap_debug.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 */ |