aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/debug.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-07-31 15:09:46 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-07-31 18:48:19 +0200
commitf729b32745639dc5f934ad17e62219307f59838a (patch)
treedb5039b7d8ea3bd5027b4b57e5c1f54b94de919c /src/common/debug.h
parenteb8a22e2c2dde74970d3cc320233b6c1e83e06b7 (diff)
C-Netz: Fixed multi-transceiver mode and show channel in various logs
Diffstat (limited to 'src/common/debug.h')
-rw-r--r--src/common/debug.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/debug.h b/src/common/debug.h
index 92ffe08..8374c24 100644
--- a/src/common/debug.h
+++ b/src/common/debug.h
@@ -20,8 +20,9 @@
#define DDMS 13
#define DSMS 14
-#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, fmt, ## arg)
-void _printdebug(const char *file, const char *function, int line, int cat, int level, const char *fmt, ...);
+#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, -1, fmt, ## arg)
+#define PDEBUG_CHAN(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, CHAN, fmt, ## arg)
+void _printdebug(const char *file, const char *function, int line, int cat, int level, int chan, const char *fmt, ...);
const char *debug_amplitude(double level);