File: log.h

package info (click to toggle)
libliftoff 0.5.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: ansic: 5,432; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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