aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/debug.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-11-27 09:19:21 +0100
committerHarald Welte <laforge@gnumonks.org>2009-11-27 09:19:21 +0100
commit39a4f047c89ceb111c1756596c712a57048154e3 (patch)
tree9c237408c22b7635903884af2456f9eec5cdcc4a /openbsc/include/openbsc/debug.h
parent260b7ddb239d0d497ee7bb7c8c93d52a1c0fe88c (diff)
parent1a79d364401dfad2a71f1e61ff13a3861e3da46e (diff)
Merge remote branch 'origin/master' into the lcr_rtp brancheversberg/lcr_rtp
Conflicts: openbsc/src/Makefile.am
Diffstat (limited to 'openbsc/include/openbsc/debug.h')
-rw-r--r--openbsc/include/openbsc/debug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h
index 089132ea9..447c3584f 100644
--- a/openbsc/include/openbsc/debug.h
+++ b/openbsc/include/openbsc/debug.h
@@ -20,6 +20,11 @@
#define DMUX 0x4000
#define DINP 0x8000
+#define DSCCP 0x10000
+#define DMSC 0x20000
+
+#define DMGCP 0x40000
+
#ifdef DEBUG
#define DEBUGP(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, 0, fmt, ## args)
#define DEBUGPC(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, 1, fmt, ## args)
@@ -31,7 +36,7 @@
#define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1];
char *hexdump(const unsigned char *buf, int len);
-void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...);
+void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...) __attribute__ ((format (printf, 5, 6)));
void debug_parse_category_mask(const char* mask);
void debug_use_color(int use_color);
void debug_timestamp(int enable);