1*7f2fe78bSCy Schubert #ifndef _TEST_CCAPI_LOG_H_ 2*7f2fe78bSCy Schubert #define _TEST_CCAPI_LOG_H_ 3*7f2fe78bSCy Schubert 4*7f2fe78bSCy Schubert #include <stdio.h> 5*7f2fe78bSCy Schubert #include <stdarg.h> 6*7f2fe78bSCy Schubert #include "test_ccapi_globals.h" 7*7f2fe78bSCy Schubert 8*7f2fe78bSCy Schubert #define log_error(format, ...) \ 9*7f2fe78bSCy Schubert _log_error(__FILE__, __LINE__, format , ## __VA_ARGS__) 10*7f2fe78bSCy Schubert 11*7f2fe78bSCy Schubert void _log_error_v(const char *file, int line, const char *format, va_list ap); 12*7f2fe78bSCy Schubert void _log_error(const char *file, int line, const char *format, ...) 13*7f2fe78bSCy Schubert #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) 14*7f2fe78bSCy Schubert __attribute__ ((__format__ (__printf__, 3, 4))) 15*7f2fe78bSCy Schubert #endif 16*7f2fe78bSCy Schubert ; 17*7f2fe78bSCy Schubert void test_header(const char *msg); 18*7f2fe78bSCy Schubert void test_footer(const char *msg, int err); 19*7f2fe78bSCy Schubert 20*7f2fe78bSCy Schubert #endif /* _TEST_CCAPI_LOG_H_ */ 21