diff options
-rw-r--r-- | sbin/isakmpd/log.c | 12 | ||||
-rw-r--r-- | sbin/isakmpd/log.h | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index b1eae0224aa..f36d364515c 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.57 2005/05/03 13:42:54 hshoexer Exp $ */ +/* $OpenBSD: log.c,v 1.58 2005/05/26 05:35:55 moritz Exp $ */ /* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */ /* @@ -354,6 +354,16 @@ log_error(const char *fmt, ...) } void +log_errorx(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + _log_print(0, LOG_ERR, fmt, ap, LOG_PRINT, 0); + va_end(ap); +} + +void log_fatal(const char *fmt, ...) { va_list ap; diff --git a/sbin/isakmpd/log.h b/sbin/isakmpd/log.h index bb83e44b71e..238399100c3 100644 --- a/sbin/isakmpd/log.h +++ b/sbin/isakmpd/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.23 2005/05/03 13:42:54 hshoexer Exp $ */ +/* $OpenBSD: log.h,v 1.24 2005/05/26 05:35:55 moritz Exp $ */ /* $EOM: log.h,v 1.19 2000/03/30 14:27:23 ho Exp $ */ /* @@ -80,6 +80,8 @@ extern void log_packet_stop(void); extern FILE *log_current(void); extern void log_error(const char *,...) __attribute__((__format__(__printf__, 1, 2))); +extern void log_errorx(const char *,...) + __attribute__((__format__(__printf__, 1, 2))); extern void log_fatal(const char *,...) __attribute__((__format__(__printf__, 1, 2))); extern void log_fatalx(const char *,...) |