From 6ddd1683b5c679582b751eaaefad089a7efe1c83 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 6 Feb 2009 12:38:29 +0000 Subject: introduce new "DEBUGPC" macro for continuing on the same line without prefix of file/line/time --- include/openbsc/debug.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/openbsc/debug.h') 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; -- cgit v1.2.3