Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Remove extraneous \n's in {err,warn}{,x}.
details: https://anonhg.NetBSD.org/src/rev/764edbbf16e5
branches: trunk
changeset: 535062:764edbbf16e5
user: soren <soren%NetBSD.org@localhost>
date: Fri Aug 09 10:01:53 2002 +0000
description:
Remove extraneous \n's in {err,warn}{,x}.
diffstat:
lib/libedit/TEST/test.c | 6 +++---
libexec/ld.elf_so/rtld.c | 4 ++--
libexec/utmp_update/utmp_update.c | 4 ++--
regress/sys/fs/lfs/9994/9994_f.c | 4 ++--
sys/arch/amiga/stand/bootblock/aout2bb/aout2bb.c | 4 ++--
sys/arch/amiga/stand/loadbsd/loadbsd.c | 6 +++---
sys/arch/atari/stand/installboot/installboot.c | 5 ++---
7 files changed, 16 insertions(+), 17 deletions(-)
diffs (141 lines):
diff -r 4beceb0236b2 -r 764edbbf16e5 lib/libedit/TEST/test.c
--- a/lib/libedit/TEST/test.c Fri Aug 09 07:01:21 2002 +0000
+++ b/lib/libedit/TEST/test.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: test.c,v 1.11 2002/03/23 23:39:18 christos Exp $ */
+/* $NetBSD: test.c,v 1.12 2002/08/09 10:03:58 soren Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)test.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: test.c,v 1.11 2002/03/23 23:39:18 christos Exp $");
+__RCSID("$NetBSD: test.c,v 1.12 2002/08/09 10:03:58 soren Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -191,7 +191,7 @@
* moved around in history.
*/
if (history(hist, &ev, H_SET, lastevent) == -1)
- err(1, "%d: %s\n", lastevent, ev.str);
+ err(1, "%d: %s", lastevent, ev.str);
history(hist, &ev, H_ADD , buf);
} else {
history(hist, &ev, H_ENTER, buf);
diff -r 4beceb0236b2 -r 764edbbf16e5 libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Fri Aug 09 07:01:21 2002 +0000
+++ b/libexec/ld.elf_so/rtld.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.51 2002/07/10 15:12:36 fredette Exp $ */
+/* $NetBSD: rtld.c,v 1.52 2002/08/09 10:03:08 soren Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -543,7 +543,7 @@
if (msg == NULL)
msg = "Fatal error";
- xerrx(1, "%s\n", msg);
+ xerrx(1, "%s", msg);
}
static Obj_Entry *
diff -r 4beceb0236b2 -r 764edbbf16e5 libexec/utmp_update/utmp_update.c
--- a/libexec/utmp_update/utmp_update.c Fri Aug 09 07:01:21 2002 +0000
+++ b/libexec/utmp_update/utmp_update.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utmp_update.c,v 1.2 2002/08/05 15:36:51 jmcneill Exp $ */
+/* $NetBSD: utmp_update.c,v 1.3 2002/08/09 10:01:53 soren Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
case DEAD_PROCESS:
break;
default:
- errx(1, "Invalid utmpx type %d\n", (int)utx->ut_type);
+ errx(1, "Invalid utmpx type %d", (int)utx->ut_type);
}
if ((pwd = getpwuid(getuid())) == NULL)
diff -r 4beceb0236b2 -r 764edbbf16e5 regress/sys/fs/lfs/9994/9994_f.c
--- a/regress/sys/fs/lfs/9994/9994_f.c Fri Aug 09 07:01:21 2002 +0000
+++ b/regress/sys/fs/lfs/9994/9994_f.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: 9994_f.c,v 1.1 2002/08/02 19:10:50 perseant Exp $ */
+/* $NetBSD: 9994_f.c,v 1.2 2002/08/09 10:04:37 soren Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@
rseed = strtoul(optarg, NULL, 0);
break;
default:
- errx(1, "usage: %s [-b bsize] [-c control-dir] [-n count] [-pq] [-s randseed]\n", prog);
+ errx(1, "usage: %s [-b bsize] [-c control-dir] [-n count] [-pq] [-s randseed]", prog);
/* NOTREACHED */
}
}
diff -r 4beceb0236b2 -r 764edbbf16e5 sys/arch/amiga/stand/bootblock/aout2bb/aout2bb.c
--- a/sys/arch/amiga/stand/bootblock/aout2bb/aout2bb.c Fri Aug 09 07:01:21 2002 +0000
+++ b/sys/arch/amiga/stand/bootblock/aout2bb/aout2bb.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aout2bb.c,v 1.8 2002/07/20 08:36:17 grant Exp $ */
+/* $NetBSD: aout2bb.c,v 1.9 2002/08/09 10:06:34 soren Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -126,7 +126,7 @@
buffer = malloc(bbsize);
relbuf = (u_int32_t *)malloc(bbsize);
if (buffer == NULL || relbuf == NULL)
- err(1, "Unable to allocate memory\n");
+ err(1, "Unable to allocate memory");
ifd = open(argv[0], O_RDONLY, 0);
if (ifd < 0)
diff -r 4beceb0236b2 -r 764edbbf16e5 sys/arch/amiga/stand/loadbsd/loadbsd.c
--- a/sys/arch/amiga/stand/loadbsd/loadbsd.c Fri Aug 09 07:01:21 2002 +0000
+++ b/sys/arch/amiga/stand/loadbsd/loadbsd.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadbsd.c,v 1.27 2002/01/26 13:21:12 aymeric Exp $ */
+/* $NetBSD: loadbsd.c,v 1.28 2002/08/09 10:07:31 soren Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -320,11 +320,11 @@
printf("kernel size: %d\n", ksize);
}
if (kp == NULL)
- err(20, "failed malloc %d\n", ksize);
+ err(20, "failed malloc %d", ksize);
if (read(fd, kp, e.a_text) != e.a_text
|| read(fd, kp + textsz, e.a_data) != e.a_data)
- err(20, "unable to read kernel image\n");
+ err(20, "unable to read kernel image");
if (k_flag) {
fmem += 4 * 1024 * 1024;
diff -r 4beceb0236b2 -r 764edbbf16e5 sys/arch/atari/stand/installboot/installboot.c
--- a/sys/arch/atari/stand/installboot/installboot.c Fri Aug 09 07:01:21 2002 +0000
+++ b/sys/arch/atari/stand/installboot/installboot.c Fri Aug 09 10:01:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.14 2002/07/20 08:36:18 grant Exp $ */
+/* $NetBSD: installboot.c,v 1.15 2002/08/09 10:08:13 soren Exp $ */
/*
* Copyright (c) 1995 Waldi Ravens
@@ -176,8 +176,7 @@
struct stat sb;
if (stat(_PATH_UNIX, &sb) < 0) {
- warnx("Cannot stat %s, no bootversion check done\n",
- _PATH_UNIX);
+ warnx("Cannot stat %s, no bootversion check done", _PATH_UNIX);
return;
}
Home |
Main Index |
Thread Index |
Old Index