diff options
author | 2002-06-09 00:40:56 +0000 | |
---|---|---|
committer | 2002-06-09 00:40:56 +0000 | |
commit | ef76a472464beca472a1771e35360cc3df7716bb (patch) | |
tree | aeb42fb7a505b5726b3f2fc9842ba17cd22cf634 | |
parent | do not present scopeid on wire format, as it is local to node (diff) | |
download | wireguard-openbsd-ef76a472464beca472a1771e35360cc3df7716bb.tar.xz wireguard-openbsd-ef76a472464beca472a1771e35360cc3df7716bb.zip |
no \n for syslog()
-rw-r--r-- | libexec/telnetd/sys_term.c | 6 | ||||
-rw-r--r-- | libexec/telnetd/utility.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index 9a63b1f77da..88fdd56e004 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -1379,7 +1379,7 @@ start_login(const char *host, int autologin, char *name) execv(new_login, (char *const*)argv.argv); save_errno = errno; - syslog(LOG_ERR, "%s: %m\n", new_login); + syslog(LOG_ERR, "%s: %m", new_login); fatalperror_errno(net, new_login, save_errno); /*NOTREACHED*/ } @@ -1882,12 +1882,12 @@ cleantmpdir(jid, tpath, user) { switch(fork()) { case -1: - syslog(LOG_ERR, "TMPDIR cleanup(%s): fork() failed: %m\n", + syslog(LOG_ERR, "TMPDIR cleanup(%s): fork() failed: %m", tpath); break; case 0: execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, (char *)NULL); - syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n", + syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m", tpath, CLEANTMPCMD); exit(1); default: diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index b0332126b13..a16bc3ae340 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -65,10 +65,10 @@ ttloop(void) if (ncc < 0) { if (errno == EINTR) return 1; - syslog(LOG_INFO, "ttloop: read: %m\n"); + syslog(LOG_INFO, "ttloop: read: %m"); exit(1); } else if (ncc == 0) { - syslog(LOG_INFO, "ttloop: peer died\n"); + syslog(LOG_INFO, "ttloop: peer died"); exit(1); } DIAG(TD_REPORT, { |