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

This commit is contained in:
Geoffrey McRae
2021-12-29 16:01:42 +11:00
parent 17b77cfbc1
commit 2ed3c82de0
3 changed files with 73 additions and 0 deletions

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