diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-02-06 12:38:29 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-02-06 12:38:29 +0000 |
commit | 6ddd1683b5c679582b751eaaefad089a7efe1c83 (patch) | |
tree | c858f704ef050fd88bbed0488430bdd5f3ee391a /include/openbsc/debug.h | |
parent | b60fa59276f6366c129ee02f24d0287edc4fcb3a (diff) |
introduce new "DEBUGPC" macro for continuing on the same line without prefix of file/line/time
Diffstat (limited to 'include/openbsc/debug.h')
-rw-r--r-- | include/openbsc/debug.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/openbsc/debug.h b/include/openbsc/debug.h index 56719806f..3945ee60c 100644 --- a/include/openbsc/debug.h +++ b/include/openbsc/debug.h @@ -15,15 +15,17 @@ #define DMIB 0x2000 #ifdef DEBUG -#define DEBUGP(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, fmt, ## args) +#define DEBUGP(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, 0, fmt, ## args) +#define DEBUGPC(ss, fmt, args...) debugp(ss, __FILE__, __LINE__, 1, fmt, ## args) #else #define DEBUGP(xss, fmt, args...) +#define DEBUGPC(ss, fmt, args...) #endif #define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1]; void hexdump(unsigned char *buf, int len); -void debugp(unsigned int subsys, char *file, int line, const char *format, ...); +void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...); void debug_parse_category_mask(const char* mask); void debug_use_color(int use_color); unsigned int debug_mask; |