libliftoff/include/log.h
Simon Ser 32683879e7 Add newline after function return type
Aligns our style with Linux' and Weston's.
2021-08-13 22:02:33 +02:00

24 lines
481 B
C

#ifndef LOG_H
#define LOG_H
#include <stdbool.h>
#include <libliftoff.h>
#ifdef __GNUC__
#define _LIFTOFF_ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
#else
#define _LIFTOFF_ATTRIB_PRINTF(start, end)
#endif
bool
log_has(enum liftoff_log_priority priority);
void
liftoff_log(enum liftoff_log_priority priority, const char *format, ...)
_LIFTOFF_ATTRIB_PRINTF(2, 3);
void
liftoff_log_errno(enum liftoff_log_priority priority, const char *msg);
#endif