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} that used to be pri...
details: https://anonhg.NetBSD.org/src/rev/f6f351d6f974
branches: trunk
changeset: 535014:f6f351d6f974
user: soren <soren%NetBSD.org@localhost>
date: Thu Aug 08 13:24:12 2002 +0000
description:
Remove extraneous \n's in {err,warn}{,x} that used to be printfs.
diffstat:
bin/systrace/filter.c | 6 +++---
libexec/ld.aout_so/rtld.c | 4 ++--
sbin/newfs/newfs.c | 6 +++---
usr.sbin/apm/apm.c | 4 ++--
usr.sbin/gspa/gspa/gsp_inst.c | 6 +++---
usr.sbin/makefs/ffs/mkfs.c | 16 ++++++++--------
usr.sbin/mtree/create.c | 6 +++---
usr.sbin/pppd/pppd/fsm.c | 6 +++---
8 files changed, 27 insertions(+), 27 deletions(-)
diffs (223 lines):
diff -r 8c9fd3fc2a0e -r f6f351d6f974 bin/systrace/filter.c
--- a/bin/systrace/filter.c Thu Aug 08 13:19:18 2002 +0000
+++ b/bin/systrace/filter.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filter.c,v 1.3 2002/07/30 16:29:30 itojun Exp $ */
+/* $NetBSD: filter.c,v 1.4 2002/08/08 13:24:12 soren Exp $ */
/* $OpenBSD: filter.c,v 1.15 2002/07/19 14:38:57 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -30,7 +30,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: filter.c,v 1.3 2002/07/30 16:29:30 itojun Exp $");
+__RCSID("$NetBSD: filter.c,v 1.4 2002/08/08 13:24:12 soren Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -355,7 +355,7 @@
*pflags = 0;
if ((policy = systrace_findpolnr(policynr)) == NULL)
- errx(1, "%s:%d: no policy %d\n", __func__, __LINE__,
+ errx(1, "%s:%d: no policy %d", __func__, __LINE__,
policynr);
if (!allow)
diff -r 8c9fd3fc2a0e -r f6f351d6f974 libexec/ld.aout_so/rtld.c
--- a/libexec/ld.aout_so/rtld.c Thu Aug 08 13:19:18 2002 +0000
+++ b/libexec/ld.aout_so/rtld.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.84 2002/07/20 08:36:24 grant Exp $ */
+/* $NetBSD: rtld.c,v 1.85 2002/08/08 13:24:14 soren Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -946,7 +946,7 @@
LD_TEXTSZ(smp->som_dynamic),
PROT_READ|PROT_EXEC) == -1) {
- err(1, "Cannot disable writes to %s:%s\n",
+ err(1, "Cannot disable writes to %s:%s",
main_progname, smp->som_path);
}
smp->som_write = 0;
diff -r 8c9fd3fc2a0e -r f6f351d6f974 sbin/newfs/newfs.c
--- a/sbin/newfs/newfs.c Thu Aug 08 13:19:18 2002 +0000
+++ b/sbin/newfs/newfs.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: newfs.c,v 1.58 2002/02/20 04:04:39 lukem Exp $ */
+/* $NetBSD: newfs.c,v 1.59 2002/08/08 13:24:13 soren Exp $ */
/*
* Copyright (c) 1983, 1989, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: newfs.c,v 1.58 2002/02/20 04:04:39 lukem Exp $");
+__RCSID("$NetBSD: newfs.c,v 1.59 2002/08/08 13:24:13 soren Exp $");
#endif
#endif /* not lint */
@@ -647,7 +647,7 @@
}
secpercyl = nsectors * ntracks - cylspares;
if (secpercyl != lp->d_secpercyl)
- warnx("%s (%d) %s (%u)\n",
+ warnx("%s (%d) %s (%u)",
"Warning: calculated sectors per cylinder", secpercyl,
"disagrees with disk label", lp->d_secpercyl);
if (maxbpg == 0)
diff -r 8c9fd3fc2a0e -r f6f351d6f974 usr.sbin/apm/apm.c
--- a/usr.sbin/apm/apm.c Thu Aug 08 13:19:18 2002 +0000
+++ b/usr.sbin/apm/apm.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apm.c,v 1.13 2002/07/20 08:40:17 grant Exp $ */
+/* $NetBSD: apm.c,v 1.14 2002/08/08 13:24:14 soren Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -93,7 +93,7 @@
if (send(fd, cmd, sizeof(*cmd), 0) == sizeof(*cmd)) {
if (recv(fd, reply, sizeof(*reply), 0) != sizeof(*reply)) {
- warn("invalid reply from APM daemon\n");
+ warn("invalid reply from APM daemon");
return (1);
}
} else {
diff -r 8c9fd3fc2a0e -r f6f351d6f974 usr.sbin/gspa/gspa/gsp_inst.c
--- a/usr.sbin/gspa/gspa/gsp_inst.c Thu Aug 08 13:19:18 2002 +0000
+++ b/usr.sbin/gspa/gspa/gsp_inst.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gsp_inst.c,v 1.3 2001/06/13 10:46:06 wiz Exp $ */
+/* $NetBSD: gsp_inst.c,v 1.4 2002/08/08 13:24:15 soren Exp $ */
/*
* TMS34010 GSP assembler - Instruction encoding
*
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: gsp_inst.c,v 1.3 2001/06/13 10:46:06 wiz Exp $");
+__RCSID("$NetBSD: gsp_inst.c,v 1.4 2002/08/08 13:24:15 soren Exp $");
#endif
#include <string.h>
@@ -747,7 +747,7 @@
opc |= val[0] & 0x1F;
break;
default:
- perr("BUG: unknown instruction class %d\n", class);
+ perr("BUG: unknown instruction class %d", class);
}
iwords[0] = opc;
return nw;
diff -r 8c9fd3fc2a0e -r f6f351d6f974 usr.sbin/makefs/ffs/mkfs.c
--- a/usr.sbin/makefs/ffs/mkfs.c Thu Aug 08 13:19:18 2002 +0000
+++ b/usr.sbin/makefs/ffs/mkfs.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkfs.c,v 1.10 2002/02/06 14:58:15 lukem Exp $ */
+/* $NetBSD: mkfs.c,v 1.11 2002/08/08 13:24:15 soren Exp $ */
/* From NetBSD: mkfs.c,v 1.59 2001/12/31 07:07:58 lukem Exp $ */
/*
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95";
#else
-__RCSID("$NetBSD: mkfs.c,v 1.10 2002/02/06 14:58:15 lukem Exp $");
+__RCSID("$NetBSD: mkfs.c,v 1.11 2002/08/08 13:24:15 soren Exp $");
#endif
#endif /* not lint */
@@ -908,13 +908,13 @@
offset = bno;
offset *= fsopts->sectorsize;
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
- err(1, "ffs_rdfs: seek error: %d\n", bno);
+ err(1, "ffs_rdfs: seek error: %d", bno);
n = read(fsopts->fd, bf, size);
if (n == -1)
- err(1, "ffs_rdfs: read error bno %d size %d\n", bno, size);
+ err(1, "ffs_rdfs: read error bno %d size %d", bno, size);
else if (n != size)
errx(1,
- "ffs_rdfs: read error bno %d size %d: short read of %d\n",
+ "ffs_rdfs: read error bno %d size %d: short read of %d",
bno, size, n);
}
@@ -930,13 +930,13 @@
offset = bno;
offset *= fsopts->sectorsize;
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
- err(1, "ffs_wtfs: seek error: %d\n", bno);
+ err(1, "ffs_wtfs: seek error: %d", bno);
n = write(fsopts->fd, bf, size);
if (n == -1)
- err(1, "ffs_wtfs: write error bno %d size %d\n", bno, size);
+ err(1, "ffs_wtfs: write error bno %d size %d", bno, size);
else if (n != size)
errx(1,
- "ffs_wtfs: write error bno %d size %d: short write of %d\n",
+ "ffs_wtfs: write error bno %d size %d: short write of %d",
bno, size, n);
}
diff -r 8c9fd3fc2a0e -r f6f351d6f974 usr.sbin/mtree/create.c
--- a/usr.sbin/mtree/create.c Thu Aug 08 13:19:18 2002 +0000
+++ b/usr.sbin/mtree/create.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: create.c,v 1.39 2002/01/31 19:37:15 tv Exp $ */
+/* $NetBSD: create.c,v 1.40 2002/08/08 13:24:15 soren Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: create.c,v 1.39 2002/01/31 19:37:15 tv Exp $");
+__RCSID("$NetBSD: create.c,v 1.40 2002/08/08 13:24:15 soren Exp $");
#endif
#endif /* not lint */
@@ -138,7 +138,7 @@
}
fts_close(t);
if (sflag && keys & F_CKSUM)
- mtree_err("%s checksum: %u\n", fullpath, crc_total);
+ mtree_err("%s checksum: %u", fullpath, crc_total);
}
static void
diff -r 8c9fd3fc2a0e -r f6f351d6f974 usr.sbin/pppd/pppd/fsm.c
--- a/usr.sbin/pppd/pppd/fsm.c Thu Aug 08 13:19:18 2002 +0000
+++ b/usr.sbin/pppd/pppd/fsm.c Thu Aug 08 13:24:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fsm.c,v 1.14 2002/07/01 22:19:32 itojun Exp $ */
+/* $NetBSD: fsm.c,v 1.15 2002/08/08 13:24:15 soren Exp $ */
/*
* fsm.c - {Link, IP} Control Protocol Finite State Machine.
@@ -47,7 +47,7 @@
#if 0
#define RCSID "Id: fsm.c,v 1.17 1999/08/13 06:46:12 paulus Exp "
#else
-__RCSID("$NetBSD: fsm.c,v 1.14 2002/07/01 22:19:32 itojun Exp $");
+__RCSID("$NetBSD: fsm.c,v 1.15 2002/08/08 13:24:15 soren Exp $");
#endif
#endif
@@ -291,7 +291,7 @@
case ACKRCVD:
case ACKSENT:
if (f->retransmits <= 0) {
- warn("%s: timeout sending Config-Requests\n", PROTO_NAME(f));
+ warn("%s: timeout sending Config-Requests", PROTO_NAME(f));
f->state = STOPPED;
if( (f->flags & OPT_PASSIVE) == 0 && f->callbacks->finished )
(*f->callbacks->finished)(f);
Home |
Main Index |
Thread Index |
Old Index