[common] provide debug print methods for dependent libraries to use

This commit is contained in:
Geoffrey McRae committed 2021-12-29 16:01:42 +11:00
1 parent 17b77cfbc1
commit 2ed3c82de0
3 files changed
+73

No files matched your search

+9
View File
@@ -131,4 +131,13 @@ void printBacktrace(void);
#define DEBUG_PROTO(fmt, ...) do {} while(0)
#endif
void debug_info(const char * file, unsigned int line, const char * function,
const char * format, ...) __attribute__((format (printf, 4, 5)));
void debug_warn(const char * file, unsigned int line, const char * function,
const char * format, ...) __attribute__((format (printf, 4, 5)));
void debug_error(const char * file, unsigned int line, const char * function,
const char * format, ...) __attribute__((format (printf, 4, 5)));
#endif