diff options
Diffstat (limited to 'usr.sbin/ldapd/log.h')
-rw-r--r-- | usr.sbin/ldapd/log.h | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/usr.sbin/ldapd/log.h b/usr.sbin/ldapd/log.h index a7f77554566..d711a3d3e1f 100644 --- a/usr.sbin/ldapd/log.h +++ b/usr.sbin/ldapd/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.1 2017/01/20 11:55:08 benno Exp $ */ +/* $OpenBSD: log.h,v 1.2 2018/05/15 11:19:21 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -19,13 +19,23 @@ #include <stdarg.h> #include <sys/cdefs.h> -void log_init(int); -void log_verbose(int); -void logit(int, const char *, ...); -void vlog(int, const char *, va_list); -void log_warn(const char *, ...); -void log_warnx(const char *, ...); -void log_info(const char *, ...); -void log_debug(const char *, ...); -void fatal(const char *) __dead; -void fatalx(const char *) __dead; +void log_init(int, int); +void log_procinit(const char *); +void log_setverbose(int); +int log_getverbose(void); +void log_warn(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +void log_warnx(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +void log_info(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +void log_debug(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +void logit(int, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); +void vlog(int, const char *, va_list) + __attribute__((__format__ (printf, 2, 0))); +__dead void fatal(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); +__dead void fatalx(const char *, ...) + __attribute__((__format__ (printf, 1, 2))); |