summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2016-07-15 05:01:58 +0000
committerDamien Miller <djm@mindrot.org>2016-07-15 20:54:55 +1000
commitaf1f084857621f14bd9391aba8033d35886c2455 (patch)
tree7b5c94c1c698cb5bc8257653d45ef7eb6d3be9c7 /log.h
parentbd5f2b78b69cf38d6049a0de445a79c8595e4a1f (diff)
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/log.h b/log.h
index ae7df25d3..434b7c81a 100644
--- a/log.h
+++ b/log.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: log.h,v 1.20 2013/04/07 02:10:33 dtucker Exp $ */ 1/* $OpenBSD: log.h,v 1.21 2016/07/15 05:01:58 dtucker Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -63,6 +63,8 @@ void fatal(const char *, ...) __attribute__((noreturn))
63void error(const char *, ...) __attribute__((format(printf, 1, 2))); 63void error(const char *, ...) __attribute__((format(printf, 1, 2)));
64void sigdie(const char *, ...) __attribute__((noreturn)) 64void sigdie(const char *, ...) __attribute__((noreturn))
65 __attribute__((format(printf, 1, 2))); 65 __attribute__((format(printf, 1, 2)));
66void logdie(const char *, ...) __attribute__((noreturn))
67 __attribute__((format(printf, 1, 2)));
66void logit(const char *, ...) __attribute__((format(printf, 1, 2))); 68void logit(const char *, ...) __attribute__((format(printf, 1, 2)));
67void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); 69void verbose(const char *, ...) __attribute__((format(printf, 1, 2)));
68void debug(const char *, ...) __attribute__((format(printf, 1, 2))); 70void debug(const char *, ...) __attribute__((format(printf, 1, 2)));