diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2016-07-15 07:01:58 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-07-15 12:54:55 +0200 |
commit | af1f084857621f14bd9391aba8033d35886c2455 (patch) | |
tree | 7b5c94c1c698cb5bc8257653d45ef7eb6d3be9c7 /log.h | |
parent | missing openssl/dh.h (diff) | |
download | openssh-af1f084857621f14bd9391aba8033d35886c2455.tar.xz openssh-af1f084857621f14bd9391aba8033d35886c2455.zip |
upstream commit
Reduce the syslog level of some relatively common protocol
events from LOG_CRIT by replacing fatal() calls with logdie(). Part of
bz#2585, ok djm@
Upstream-ID: 9005805227c94edf6ac02a160f0e199638d288e5
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.20 2013/04/07 02:10:33 dtucker Exp $ */ +/* $OpenBSD: log.h,v 1.21 2016/07/15 05:01:58 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -63,6 +63,8 @@ void fatal(const char *, ...) __attribute__((noreturn)) void error(const char *, ...) __attribute__((format(printf, 1, 2))); void sigdie(const char *, ...) __attribute__((noreturn)) __attribute__((format(printf, 1, 2))); +void logdie(const char *, ...) __attribute__((noreturn)) + __attribute__((format(printf, 1, 2))); void logit(const char *, ...) __attribute__((format(printf, 1, 2))); void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); void debug(const char *, ...) __attribute__((format(printf, 1, 2))); |