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