From 31b4bb2671a8840cece24114e751cc51e5833502 Mon Sep 17 00:00:00 2001 From: Hans Insulander Date: Sun, 9 Jun 2002 00:41:27 +0000 Subject: no \n for syslog() --- libexec/telnetd/sys_term.c | 6 +++--- 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, { -- cgit v1.2.3