diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2016-07-31 15:09:46 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2016-07-31 18:48:19 +0200 |
commit | f729b32745639dc5f934ad17e62219307f59838a (patch) | |
tree | db5039b7d8ea3bd5027b4b57e5c1f54b94de919c /src/common/debug.h | |
parent | eb8a22e2c2dde74970d3cc320233b6c1e83e06b7 (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.h | 5 |
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); |