aboutsummaryrefslogtreecommitdiff
path: root/sbin/slattach
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-01 08:34:32 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-01 08:34:32 +0000
commitc981965073ca9ea42d0a3854b9800e66d6a033fd (patch)
treece49cc3ae97790d7c46c456f4cb36ac7e5183242 /sbin/slattach
parent0835483992404eb110611d805919c3b17b2131d9 (diff)
downloadsrc-c981965073ca9ea42d0a3854b9800e66d6a033fd.tar.gz
src-c981965073ca9ea42d0a3854b9800e66d6a033fd.zip
Remove extra :%s from syslog formats
Notes
Notes: svn path=/head/; revision=4040
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index ac4a5303aa77..e18a48c4d36a 100644
--- a/sbin/slattach/slattach.c
+++ b/sbin/slattach/slattach.c
@@ -191,13 +191,13 @@ int main(int argc, char **argv)
/* upon INT log a timestamp and exit. */
if ((int)signal(SIGINT,sigint_handler) < 0)
- syslog(LOG_NOTICE,"cannot install SIGINT handler: %s: %m");
+ syslog(LOG_NOTICE,"cannot install SIGINT handler: %m");
/* upon TERM log a timestamp and exit. */
if ((int)signal(SIGTERM,sigterm_handler) < 0)
- syslog(LOG_NOTICE,"cannot install SIGTERM handler: %s: %m");
+ syslog(LOG_NOTICE,"cannot install SIGTERM handler: %m");
/* upon HUP redial and reconnect. */
if ((int)signal(SIGHUP,sighup_handler) < 0)
- syslog(LOG_NOTICE,"cannot install SIGHUP handler: %s: %m");
+ syslog(LOG_NOTICE,"cannot install SIGHUP handler: %m");
if (redial_on_startup)
sighup_handler();
@@ -240,7 +240,7 @@ void acquire_line()
sleep (1); /* Wait for parent to die. */
if ((int)signal(SIGHUP,sighup_handler) < 0) /* Re-enable HUP signal */
- syslog(LOG_NOTICE,"cannot install SIGHUP handler: %s: %m");
+ syslog(LOG_NOTICE,"cannot install SIGHUP handler: %m");
if ((fd = open(dev, O_RDWR | O_NONBLOCK, 0)) < 0) {
syslog(LOG_ERR, "open(%s) fd=%d: %m", dev, fd);
@@ -255,11 +255,11 @@ void acquire_line()
/* acquire the serial line as a controling terminal. */
if (ioctl(fd, TIOCSCTTY, 0) < 0)
- syslog(LOG_NOTICE,"ioctl(TIOCSCTTY) failed: %s: %m");
+ syslog(LOG_NOTICE,"ioctl(TIOCSCTTY) failed: %m");
/* Make us the foreground process group associated with the
slip line which is our controlling terminal. */
if (tcsetpgrp(fd, getpid()) < 0)
- syslog(LOG_NOTICE,"tcsetpgrp failed: %s: %m");
+ syslog(LOG_NOTICE,"tcsetpgrp failed: %m");
}
/* Set the tty flags and set DTR. */