summaryrefslogtreecommitdiffstats
path: root/sbin/slattach
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-11-01 08:34:32 +0000
committerache <ache@FreeBSD.org>1994-11-01 08:34:32 +0000
commit8dc5437565c87c4ac7b356047d7fcd194cc8a1c6 (patch)
treece49cc3ae97790d7c46c456f4cb36ac7e5183242 /sbin/slattach
parentd6c1596a6362147a682b9a908480d91cfbaa1104 (diff)
downloadFreeBSD-src-8dc5437565c87c4ac7b356047d7fcd194cc8a1c6.zip
FreeBSD-src-8dc5437565c87c4ac7b356047d7fcd194cc8a1c6.tar.gz
Remove extra :%s from syslog formats
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 ac4a530..e18a48c 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. */
OpenPOWER on IntegriCloud