summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/log.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-07 11:28:04 +0000
committermarkus <markus@openbsd.org>2001-01-07 11:28:04 +0000
commit8de9cd5060fe78c1361368895caee008e76b8fdf (patch)
treeb4b970ee1de7acb01449155fcab7433b1a488edf /usr.bin/ssh/log.c
parentMake the -P option effective (rjmooney@mediaone.net) (diff)
downloadwireguard-openbsd-8de9cd5060fe78c1361368895caee008e76b8fdf.tar.xz
wireguard-openbsd-8de9cd5060fe78c1361368895caee008e76b8fdf.zip
rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE
syslog priority changes: fatal() LOG_ERR -> LOG_CRIT log() LOG_INFO -> LOG_NOTICE
Diffstat (limited to 'usr.bin/ssh/log.c')
-rw-r--r--usr.bin/ssh/log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c
index 9cae37125e6..7dfffa185f5 100644
--- a/usr.bin/ssh/log.c
+++ b/usr.bin/ssh/log.c
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.12 2000/12/19 23:17:57 markus Exp $");
+RCSID("$OpenBSD: log.c,v 1.13 2001/01/07 11:28:05 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -71,7 +71,7 @@ log(const char *fmt,...)
{
va_list args;
va_start(args, fmt);
- do_log(SYSLOG_LEVEL_INFO, fmt, args);
+ do_log(SYSLOG_LEVEL_NOTICE, fmt, args);
va_end(args);
}
@@ -206,12 +206,13 @@ static struct {
{ "QUIET", SYSLOG_LEVEL_QUIET },
{ "FATAL", SYSLOG_LEVEL_FATAL },
{ "ERROR", SYSLOG_LEVEL_ERROR },
- { "INFO", SYSLOG_LEVEL_INFO },
+ { "NOTICE", SYSLOG_LEVEL_NOTICE },
{ "VERBOSE", SYSLOG_LEVEL_VERBOSE },
{ "DEBUG", SYSLOG_LEVEL_DEBUG1 },
{ "DEBUG1", SYSLOG_LEVEL_DEBUG1 },
{ "DEBUG2", SYSLOG_LEVEL_DEBUG2 },
{ "DEBUG3", SYSLOG_LEVEL_DEBUG3 },
+ { "INFO", SYSLOG_LEVEL_NOTICE }, /* backward compatible */
{ NULL, 0 }
};