diff options
Diffstat (limited to 'usr.sbin/iscsid/log.h')
-rw-r--r-- | usr.sbin/iscsid/log.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/usr.sbin/iscsid/log.h b/usr.sbin/iscsid/log.h index ef3bd1634e7..745933b2f4a 100644 --- a/usr.sbin/iscsid/log.h +++ b/usr.sbin/iscsid/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.3 2016/07/18 21:18:48 benno Exp $ */ +/* $OpenBSD: log.h,v 1.4 2016/09/02 16:22:31 benno Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -16,29 +16,29 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef _LOG_H_ -#define _LOG_H_ +#ifndef LOG_H +#define LOG_H #include <stdarg.h> +#include <sys/cdefs.h> -void log_init(int); -void log_verbose(int); -void vlog(int, const char *, va_list) +void log_init(int); +void log_verbose(int); +void logit(int, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); +void vlog(int, const char *, va_list) __attribute__((__format__ (printf, 2, 0))); -void log_warn(const char *, ...) +void log_warn(const char *, ...) __attribute__((__format__ (printf, 1, 2))); -void log_warnx(const char *, ...) +void log_warnx(const char *, ...) __attribute__((__format__ (printf, 1, 2))); -void log_info(const char *, ...) +void log_info(const char *, ...) __attribute__((__format__ (printf, 1, 2))); -void log_debug(const char *, ...) +void log_debug(const char *, ...) __attribute__((__format__ (printf, 1, 2))); -void fatal(const char *) __dead +void fatal(const char *) __dead __attribute__((__format__ (printf, 1, 0))); -void fatalx(const char *) __dead +void fatalx(const char *) __dead __attribute__((__format__ (printf, 1, 0))); -void log_hexdump(void *, size_t); -void log_pdu(struct pdu *, int); - -#endif /* _LOG_H_ */ +#endif /* LOG_H */ |