diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-08 06:13:41 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-08 06:13:41 +0000 |
commit | a383baac4604a7de1710e87fba0403e4a56d5472 (patch) | |
tree | 62d267f992fd15d00e9382f95199b138877435b7 /log.c | |
parent | 9ce907c3d60637943dfa46a4542164498be19ea8 (diff) |
20010108
- (bal) Fixed another typo in cli.c
- (bal) OpenBSD Sync
- markus@cvs.openbsd.org 2001/01/07 21:26:55
[cli.c]
typo
- markus@cvs.openbsd.org 2001/01/07 21:26:55
[cli.c]
missing free, stevesk@pobox.com
- markus@cvs.openbsd.org 2001/01/07 19:06:25
[auth1.c]
missing free, stevesk@pobox.com
- markus@cvs.openbsd.org 2001/01/07 11:28:04
[log-client.c log-server.c log.c readconf.c servconf.c ssh.1
ssh.h sshd.8 sshd.c]
rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE
syslog priority changes:
fatal() LOG_ERR -> LOG_CRIT
log() LOG_INFO -> LOG_NOTICE
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: log.c,v 1.12 2000/12/19 23:17:57 markus Exp $"); | 39 | RCSID("$OpenBSD: log.c,v 1.13 2001/01/07 11:28:05 markus Exp $"); |
40 | 40 | ||
41 | #include "ssh.h" | 41 | #include "ssh.h" |
42 | #include "xmalloc.h" | 42 | #include "xmalloc.h" |
@@ -71,7 +71,7 @@ log(const char *fmt,...) | |||
71 | { | 71 | { |
72 | va_list args; | 72 | va_list args; |
73 | va_start(args, fmt); | 73 | va_start(args, fmt); |
74 | do_log(SYSLOG_LEVEL_INFO, fmt, args); | 74 | do_log(SYSLOG_LEVEL_NOTICE, fmt, args); |
75 | va_end(args); | 75 | va_end(args); |
76 | } | 76 | } |
77 | 77 | ||
@@ -209,12 +209,13 @@ static struct { | |||
209 | { "QUIET", SYSLOG_LEVEL_QUIET }, | 209 | { "QUIET", SYSLOG_LEVEL_QUIET }, |
210 | { "FATAL", SYSLOG_LEVEL_FATAL }, | 210 | { "FATAL", SYSLOG_LEVEL_FATAL }, |
211 | { "ERROR", SYSLOG_LEVEL_ERROR }, | 211 | { "ERROR", SYSLOG_LEVEL_ERROR }, |
212 | { "INFO", SYSLOG_LEVEL_INFO }, | 212 | { "NOTICE", SYSLOG_LEVEL_NOTICE }, |
213 | { "VERBOSE", SYSLOG_LEVEL_VERBOSE }, | 213 | { "VERBOSE", SYSLOG_LEVEL_VERBOSE }, |
214 | { "DEBUG", SYSLOG_LEVEL_DEBUG1 }, | 214 | { "DEBUG", SYSLOG_LEVEL_DEBUG1 }, |
215 | { "DEBUG1", SYSLOG_LEVEL_DEBUG1 }, | 215 | { "DEBUG1", SYSLOG_LEVEL_DEBUG1 }, |
216 | { "DEBUG2", SYSLOG_LEVEL_DEBUG2 }, | 216 | { "DEBUG2", SYSLOG_LEVEL_DEBUG2 }, |
217 | { "DEBUG3", SYSLOG_LEVEL_DEBUG3 }, | 217 | { "DEBUG3", SYSLOG_LEVEL_DEBUG3 }, |
218 | { "INFO", SYSLOG_LEVEL_NOTICE }, /* backward compatible */ | ||
218 | { NULL, 0 } | 219 | { NULL, 0 } |
219 | }; | 220 | }; |
220 | 221 | ||