xref: /openbmc/libcper/include/libcper/log.h (revision 398899a0e68a00262f863530fd94b8e1881fff2e)
1 /* SPDX-License-Identifier: Apache-2.0 */
2 
3 #ifndef LIBCPER_LOG_H
4 #define LIBCPER_LOG_H
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 void cper_set_log_stdio(void);
11 void cper_set_log_custom(void (*fn)(const char *, ...));
12 
13 void cper_print_log(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
14 
15 #ifdef __cplusplus
16 }
17 #endif
18 
19 #endif /* LIBCPER_LOG_H */
20