1 #ifndef _BLUETOOTH_DEBUG_SERVER_H_
2 #define _BLUETOOTH_DEBUG_SERVER_H_
14 inline void ERROR(const char *fmt
, ...)
18 printf("### ERROR: ");
19 vprintf(fmt
, ap
); va_end(ap
);
22 inline void PRINT(int level, const char *fmt, ...)
32 inline void PRINT(const char *fmt, ...)
41 #define TRACE(a...) printf("TRACE %s : %s\n", __PRETTY_FUNCTION__, a)
43 #define TRACE(a...) ((void)0)
47 #define END() printf("ENDING %s\n",__PRETTY_FUNCTION__)
48 #define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__)
50 #define END() ((void)0)
51 #define CALLED() ((void)0)
54 #define END() ((void)0)
55 #define CALLED() ((void)0)
56 #define ERROR(a...) fprintf(stderr, a)
57 #define TRACE(a...) ((void)0)
60 #define PRINT(l, a...) printf(l, a)
62 #endif /* _BLUETOOTH_DEBUG_SERVER_H_ */