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