Blame


1 13b2bc37 2022-10-23 stsp /*
2 13b2bc37 2022-10-23 stsp * Copyright (c) 2022 Stefan Sperling <stsp@openbsd.org>
3 13b2bc37 2022-10-23 stsp *
4 13b2bc37 2022-10-23 stsp * Permission to use, copy, modify, and distribute this software for any
5 13b2bc37 2022-10-23 stsp * purpose with or without fee is hereby granted, provided that the above
6 13b2bc37 2022-10-23 stsp * copyright notice and this permission notice appear in all copies.
7 13b2bc37 2022-10-23 stsp *
8 13b2bc37 2022-10-23 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 13b2bc37 2022-10-23 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 13b2bc37 2022-10-23 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 13b2bc37 2022-10-23 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 13b2bc37 2022-10-23 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 13b2bc37 2022-10-23 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 13b2bc37 2022-10-23 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 13b2bc37 2022-10-23 stsp */
16 13b2bc37 2022-10-23 stsp
17 13b2bc37 2022-10-23 stsp void log_init(int, int);
18 13b2bc37 2022-10-23 stsp void log_procinit(const char *);
19 13b2bc37 2022-10-23 stsp void log_setverbose(int);
20 13b2bc37 2022-10-23 stsp int log_getverbose(void);
21 13b2bc37 2022-10-23 stsp void log_warn(const char *, ...)
22 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));
23 13b2bc37 2022-10-23 stsp void log_warnx(const char *, ...)
24 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));
25 13b2bc37 2022-10-23 stsp void log_info(const char *, ...)
26 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));
27 13b2bc37 2022-10-23 stsp void log_debug(const char *, ...)
28 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));
29 13b2bc37 2022-10-23 stsp void logit(int, const char *, ...)
30 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 2, 3)));
31 13b2bc37 2022-10-23 stsp void vlog(int, const char *, va_list)
32 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 2, 0)));
33 13b2bc37 2022-10-23 stsp __dead void fatal(const char *, ...)
34 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));
35 13b2bc37 2022-10-23 stsp __dead void fatalx(const char *, ...)
36 13b2bc37 2022-10-23 stsp __attribute__((__format__ (printf, 1, 2)));