diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-06-20 11:24:10 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-06-20 11:24:10 +0000 |
commit | 4a59c211e501b1c5d3f68f75025cae644cb48cc8 (patch) | |
tree | dc969f11ea89650058341654d38e7bc8dc821dc7 /xpp | |
parent | 9b84fae9ca0c653ac91ab66765b6e9ff741cc168 (diff) |
turn an expression into a statement so the compiler won't complain about unused expression results
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1135 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp')
-rw-r--r-- | xpp/zap_debug.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xpp/zap_debug.h b/xpp/zap_debug.h index cc3002d..3c31352 100644 --- a/xpp/zap_debug.h +++ b/xpp/zap_debug.h @@ -23,9 +23,11 @@ */ /* Debugging Macros */ -#define DBG(fmt, ...) \ - ((print_dbg) && printk(KERN_DEBUG "DBG-%s: %s: " fmt, \ - THIS_MODULE->name, __FUNCTION__, ## __VA_ARGS__)) +#define DBG(fmt, ...) \ + do { \ + if (print_dbg) \ + printk(KERN_DEBUG "DBG-%s: %s: " fmt, THIS_MODULE->name, __FUNCTION__, ## __VA_ARGS__); \ + } while (0) #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 WARN(fmt, ...) printk(KERN_WARNING "WARN-%s: %s: " fmt, THIS_MODULE->name, __FUNCTION__, ## __VA_ARGS__) |