summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Peel <jsyn@cvs.openbsd.org>2002-06-11 06:16:37 +0000
committerJason Peel <jsyn@cvs.openbsd.org>2002-06-11 06:16:37 +0000
commitf1bb7fb5cfe9822f50143a03473f49e825e704bc (patch)
treeb52183f48c7c26eefd4e775d5d3961c0966d3ccd
parentea445c9a491356bc5908d76271fddc05137a4a3c (diff)
kill err(3) newlines; ok miod@, deraadt@
-rw-r--r--libexec/lfs_cleanerd/cleanerd.c6
-rw-r--r--regress/sys/kern/kqueue/kqueue-process.c4
-rw-r--r--regress/sys/kern/sysvmsg/msgtest.c4
-rw-r--r--regress/sys/kern/sysvsem/semtest.c2
-rw-r--r--regress/sys/kern/sysvshm/shmtest.c2
-rw-r--r--usr.bin/sed/compile.c8
-rw-r--r--usr.bin/sed/process.c12
-rw-r--r--usr.bin/usbhidaction/usbhidaction.c6
8 files changed, 22 insertions, 22 deletions
diff --git a/libexec/lfs_cleanerd/cleanerd.c b/libexec/lfs_cleanerd/cleanerd.c
index f1fd1dc496f..d885d87296c 100644
--- a/libexec/lfs_cleanerd/cleanerd.c
+++ b/libexec/lfs_cleanerd/cleanerd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cleanerd.c,v 1.9 2002/05/22 06:07:00 deraadt Exp $ */
+/* $OpenBSD: cleanerd.c,v 1.10 2002/06/11 06:16:36 jsyn Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)cleanerd.c 8.5 (Berkeley) 6/10/95";*/
-static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.9 2002/05/22 06:07:00 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.10 2002/06/11 06:16:36 jsyn Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -236,7 +236,7 @@ main(argc, argv)
(void)printf("Cleaner going to sleep.\n");
#endif
if (lfs_segwait(&fsid, &timeout) < 0)
- err(0, "lfs_segwait: returned error\n");
+ err(0, "lfs_segwait: returned error");
#ifdef VERBOSE
(void)printf("Cleaner waking up.\n");
#endif
diff --git a/regress/sys/kern/kqueue/kqueue-process.c b/regress/sys/kern/kqueue/kqueue-process.c
index b9112ca1a60..e993d282ce2 100644
--- a/regress/sys/kern/kqueue/kqueue-process.c
+++ b/regress/sys/kern/kqueue/kqueue-process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue-process.c,v 1.1 2002/03/02 21:48:05 art Exp $ */
+/* $OpenBSD: kqueue-process.c,v 1.2 2002/06/11 06:16:36 jsyn Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain
*/
@@ -86,7 +86,7 @@ do_process(void)
case NOTE_TRACKERR:
errx(1, "child tracking failed due to resource shortage");
default:
- errx(1, "kevent returned weird event 0x%x pid %d\n",
+ errx(1, "kevent returned weird event 0x%x pid %d",
ke.fflags, (pid_t)ke.ident);
}
}
diff --git a/regress/sys/kern/sysvmsg/msgtest.c b/regress/sys/kern/sysvmsg/msgtest.c
index 6750a40765f..0c402af4b9c 100644
--- a/regress/sys/kern/sysvmsg/msgtest.c
+++ b/regress/sys/kern/sysvmsg/msgtest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgtest.c,v 1.2 2002/02/17 19:42:27 millert Exp $ */
+/* $OpenBSD: msgtest.c,v 1.3 2002/06/11 06:16:36 jsyn Exp $ */
/* $NetBSD: msgtest.c,v 1.6 2001/02/19 22:44:41 cgd Exp $ */
/*-
@@ -248,7 +248,7 @@ sigchld_handler(signo)
errx(1, "receiver exited abnormally");
if (WEXITSTATUS(cstatus) != 0)
- errx(1, "receiver exited with status %d\n",
+ errx(1, "receiver exited with status %d",
WEXITSTATUS(cstatus));
/*
diff --git a/regress/sys/kern/sysvsem/semtest.c b/regress/sys/kern/sysvsem/semtest.c
index 4a8db7bfa7b..a2022eb56d1 100644
--- a/regress/sys/kern/sysvsem/semtest.c
+++ b/regress/sys/kern/sysvsem/semtest.c
@@ -252,7 +252,7 @@ sigchld_handler(signo)
errx(1, "receiver exited abnormally");
if (WEXITSTATUS(cstatus) != 0)
- errx(1, "receiver exited with status %d\n",
+ errx(1, "receiver exited with status %d",
WEXITSTATUS(cstatus));
/*
diff --git a/regress/sys/kern/sysvshm/shmtest.c b/regress/sys/kern/sysvshm/shmtest.c
index d513a17eac3..a1b3cf91fc9 100644
--- a/regress/sys/kern/sysvshm/shmtest.c
+++ b/regress/sys/kern/sysvshm/shmtest.c
@@ -222,7 +222,7 @@ sigchld_handler(signo)
errx(1, "receiver exited abnormally");
if (WEXITSTATUS(cstatus) != 0)
- errx(1, "receiver exited with status %d\n",
+ errx(1, "receiver exited with status %d",
WEXITSTATUS(cstatus));
/*
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index e47135b6ae7..b14b392e24d 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compile.c,v 1.11 2002/02/16 21:27:52 millert Exp $ */
+/* $OpenBSD: compile.c,v 1.12 2002/06/11 06:16:36 jsyn Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -39,7 +39,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */
-static char *rcsid = "$OpenBSD: compile.c,v 1.11 2002/02/16 21:27:52 millert Exp $";
+static char *rcsid = "$OpenBSD: compile.c,v 1.12 2002/06/11 06:16:36 jsyn Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -270,7 +270,7 @@ nonsel: /* Now parse the command */
else if ((cmd->u.fd = open(p,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n", p, strerror(errno));
+ err(FATAL, "%s: %s", p, strerror(errno));
break;
case RFILE: /* r */
p++;
@@ -560,7 +560,7 @@ compile_flags(p, s)
if (!aflag && (s->wfd = open(wfile,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n", wfile, strerror(errno));
+ err(FATAL, "%s: %s", wfile, strerror(errno));
return (p);
default:
err(COMPILE,
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index af12c21ac8c..4cdbf0cefef 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $ */
+/* $OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -39,7 +39,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)process.c 8.1 (Berkeley) 6/6/93"; */
-static char *rcsid = "$OpenBSD: process.c,v 1.8 2002/04/15 21:47:45 millert Exp $";
+static char *rcsid = "$OpenBSD: process.c,v 1.9 2002/06/11 06:16:36 jsyn Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -227,10 +227,10 @@ redirect:
if (cp->u.fd == -1 && (cp->u.fd = open(cp->t,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n",
+ err(FATAL, "%s: %s",
cp->t, strerror(errno));
if (write(cp->u.fd, ps, psl) != psl)
- err(FATAL, "%s: %s\n",
+ err(FATAL, "%s: %s",
cp->t, strerror(errno));
break;
case 'x':
@@ -414,9 +414,9 @@ substitute(cp)
if (cp->u.s->wfile && !pd) {
if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1)
- err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));
+ err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
if (write(cp->u.s->wfd, ps, psl) != psl)
- err(FATAL, "%s: %s\n", cp->u.s->wfile, strerror(errno));
+ err(FATAL, "%s: %s", cp->u.s->wfile, strerror(errno));
}
return (1);
}
diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c
index 7b218f5e49f..e7783fc2055 100644
--- a/usr.bin/usbhidaction/usbhidaction.c
+++ b/usr.bin/usbhidaction/usbhidaction.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbhidaction.c,v 1.1 2002/05/10 00:09:17 nate Exp $ */
+/* $OpenBSD: usbhidaction.c,v 1.2 2002/06/11 06:16:36 jsyn Exp $ */
/* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */
/*
@@ -142,7 +142,7 @@ main(int argc, char **argv)
reportid = -1;
repd = hid_get_report_desc(fd);
if (repd == NULL)
- err(1, "hid_get_report_desc() failed\n");
+ err(1, "hid_get_report_desc() failed");
commands = parse_conf(conf, repd, reportid, ignore);
@@ -348,7 +348,7 @@ parse_conf(const char *conf, report_desc_t repd, int reportid, int ignore)
}
if (ignore) {
if (verbose)
- warnx("ignore item '%s'\n", name);
+ warnx("ignore item '%s'", name);
continue;
}
if (isdemon) {