]> git.proxmox.com Git - mirror_frr.git/blob - ldpd/log.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / ldpd / log.h
1 // SPDX-License-Identifier: ISC
2 /* $OpenBSD$ */
3
4 /*
5 * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
6 */
7
8 #ifndef LOG_H
9 #define LOG_H
10
11 #include <stdarg.h>
12
13 extern const char *log_procname;
14
15 void logit(int, const char *, ...)
16 __attribute__((__format__ (printf, 2, 3)));
17 void vlog(int, const char *, va_list)
18 __attribute__((__format__ (printf, 2, 0)));
19 void log_warn(const char *, ...)
20 __attribute__((__format__ (printf, 1, 2)));
21 void log_warnx(const char *, ...)
22 __attribute__((__format__ (printf, 1, 2)));
23 void log_info(const char *, ...)
24 __attribute__((__format__ (printf, 1, 2)));
25 void log_notice(const char *, ...)
26 __attribute__((__format__ (printf, 1, 2)));
27 void log_debug(const char *, ...)
28 __attribute__((__format__ (printf, 1, 2)));
29 void fatal(const char *)
30 __attribute__ ((noreturn))
31 __attribute__((__format__ (printf, 1, 0)));
32 void fatalx(const char *)
33 __attribute__ ((noreturn))
34 __attribute__((__format__ (printf, 1, 0)));
35
36 #endif /* LOG_H */