From db0bc3759f980cdc899215e89804bd0e2f2369d8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 15 Aug 2003 23:13:08 +0000 Subject: remove extra \n in {warn,err}{,x} calls --- gnu/usr.bin/ld/ld.c | 4 ++-- gnu/usr.bin/ld/ns32k/md.c | 4 ++-- gnu/usr.bin/ld/rtld/rtld.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index 9c4afb2300c..20bca5004db 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.c,v 1.29 2003/04/16 02:15:10 deraadt Exp $ */ +/* $OpenBSD: ld.c,v 1.30 2003/08/15 23:13:06 deraadt Exp $ */ /* $NetBSD: ld.c,v 1.52 1998/02/20 03:12:51 jonathan Exp $ */ /*- @@ -2630,7 +2630,7 @@ write_header(void) flags = 0; if (oldmagic && (flags & EX_DPMASK)) - warnx("Cannot set flag in old magic headers\n"); + warnx("Cannot set flag in old magic headers"); N_SET_FLAG (outheader, flags); diff --git a/gnu/usr.bin/ld/ns32k/md.c b/gnu/usr.bin/ld/ns32k/md.c index 4dd8626df66..137d1e6cba0 100644 --- a/gnu/usr.bin/ld/ns32k/md.c +++ b/gnu/usr.bin/ld/ns32k/md.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md.c,v 1.5 2002/07/19 19:28:12 marc Exp $ */ +/* $OpenBSD: md.c,v 1.6 2003/08/15 23:13:06 deraadt Exp $ */ /* $NetBSD: md.c,v 1.6 1994/11/30 06:20:42 phil Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -191,7 +191,7 @@ get_disp(unsigned char *addr, int n) Ivalue = (Ivalue << 8) | *addr; break; default: - errx(1, "get_disp: invalid argument %d\n", n); + errx(1, "get_disp: invalid argument %d", n); } return Ivalue; } diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c index 22dd67b1013..c2e20f8d6f8 100644 --- a/gnu/usr.bin/ld/rtld/rtld.c +++ b/gnu/usr.bin/ld/rtld/rtld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld.c,v 1.37 2003/05/08 16:30:52 millert Exp $ */ +/* $OpenBSD: rtld.c,v 1.38 2003/08/15 23:13:06 deraadt Exp $ */ /* $NetBSD: rtld.c,v 1.43 1996/01/14 00:35:17 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -1305,11 +1305,11 @@ findhint(char *name, int major, int minor, char *prefered_path) while (1) { /* Sanity check */ if (bp->hi_namex >= hheader->hh_strtab_sz) { - warnx("Bad name index: %#x\n", bp->hi_namex); + warnx("Bad name index: %#x", bp->hi_namex); break; } if (bp->hi_pathx >= hheader->hh_strtab_sz) { - warnx("Bad path index: %#x\n", bp->hi_pathx); + warnx("Bad path index: %#x", bp->hi_pathx); break; } -- cgit v1.2.3