summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-05 07:47:23 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-05 07:47:23 +0000
commit6df8ef4196f1287d4c328f09ea7f8c0995e0cab1 (patch)
treec4d4da3f9a84099838388a6070c7cdc675c27155 /log.c
parentfafea18d68f3d1a4ea412ff4618fd66c1a05b548 (diff)
- millert@cvs.openbsd.org 2001/03/04 17:42:28
[authfd.c channels.c dh.c log.c readconf.c servconf.c sftp-int.c ssh.c sshconnect.c sshd.c] log functions should not be passed strings that end in newline as they get passed on to syslog() and when logging to stderr, do_log() appends its own newline.
Diffstat (limited to 'log.c')
-rw-r--r--log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/log.c b/log.c
index c9c1631c..ad93f515 100644
--- a/log.c
+++ b/log.c
@@ -34,7 +34,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.17 2001/03/04 17:42:28 millert Exp $");
+RCSID("$OpenBSD: log.c,v 1.16 2001/03/03 23:59:34 markus Exp $");
#include "log.h"
#include "xmalloc.h"
@@ -265,7 +265,7 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
log_level = level;
break;
default:
- fprintf(stderr, "Unrecognized internal syslog level code %d\n",
+ fprintf(stderr, "Unrecognized internal syslog level code %d",
(int) level);
exit(1);
}
@@ -315,7 +315,7 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
break;
default:
fprintf(stderr,
- "Unrecognized internal syslog facility code %d\n",
+ "Unrecognized internal syslog facility code %d",
(int) facility);
exit(1);
}