=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/log-server.c,v retrieving revision 1.14.2.2 retrieving revision 1.14.2.3 diff -u -r1.14.2.2 -r1.14.2.3 --- src/usr.bin/ssh/Attic/log-server.c 2000/11/08 21:30:55 1.14.2.2 +++ src/usr.bin/ssh/Attic/log-server.c 2001/03/12 15:44:11 1.14.2.3 @@ -36,12 +36,12 @@ */ #include "includes.h" -RCSID("$OpenBSD: log-server.c,v 1.14.2.2 2000/11/08 21:30:55 jason Exp $"); +RCSID("$OpenBSD: log-server.c,v 1.14.2.3 2001/03/12 15:44:11 jason Exp $"); #include #include "packet.h" #include "xmalloc.h" -#include "ssh.h" +#include "log.h" static LogLevel log_level = SYSLOG_LEVEL_INFO; static int log_on_stderr = 0; @@ -58,8 +58,8 @@ { switch (level) { case SYSLOG_LEVEL_QUIET: - case SYSLOG_LEVEL_ERROR: case SYSLOG_LEVEL_FATAL: + case SYSLOG_LEVEL_ERROR: case SYSLOG_LEVEL_INFO: case SYSLOG_LEVEL_VERBOSE: case SYSLOG_LEVEL_DEBUG1: @@ -128,15 +128,17 @@ if (level > log_level) return; switch (level) { + case SYSLOG_LEVEL_FATAL: + txt = "fatal"; + pri = LOG_CRIT; + break; case SYSLOG_LEVEL_ERROR: txt = "error"; pri = LOG_ERR; break; - case SYSLOG_LEVEL_FATAL: - txt = "fatal"; - pri = LOG_ERR; - break; case SYSLOG_LEVEL_INFO: + pri = LOG_INFO; + break; case SYSLOG_LEVEL_VERBOSE: pri = LOG_INFO; break;