From 7da746ab028873552411789fd03504f82bdc4795 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 16 Jun 2015 22:31:08 +0000 Subject: [PATCH] remove \n from error messages --- bin/pax/tar.c | 6 +++--- bin/ps/ps.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 2b8129813c3f..f4d57d41fa2c 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -1,4 +1,4 @@ -/* $NetBSD: tar.c,v 1.71 2013/01/24 17:43:44 christos Exp $ */ +/* $NetBSD: tar.c,v 1.72 2015/06/16 22:31:08 christos Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94"; #else -__RCSID("$NetBSD: tar.c,v 1.71 2013/01/24 17:43:44 christos Exp $"); +__RCSID("$NetBSD: tar.c,v 1.72 2015/06/16 22:31:08 christos Exp $"); #endif #endif /* not lint */ @@ -1009,7 +1009,7 @@ longlink(ARCHD *arcn, int type) gnu_hack_len = arcn->nlen + 1; break; default: - errx(1, "Invalid type in GNU longlink %d\n", type); + errx(1, "Invalid type in GNU longlink %d", type); } /* diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 9a7818428094..1e243ae02baf 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $NetBSD: ps.c,v 1.82 2014/06/28 17:32:27 dholland Exp $ */ +/* $NetBSD: ps.c,v 1.83 2015/06/16 22:31:08 christos Exp $ */ /* * Copyright (c) 2000-2008 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993, 1994\ #if 0 static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: ps.c,v 1.82 2014/06/28 17:32:27 dholland Exp $"); +__RCSID("$NetBSD: ps.c,v 1.83 2015/06/16 22:31:08 christos Exp $"); #endif #endif /* not lint */ @@ -398,7 +398,7 @@ main(int argc, char *argv[]) parsesort("tdev,pid"); SIMPLEQ_FOREACH(vent, &sortlist, next) { if (vent->var->flag & LWP || vent->var->type == UNSPECIFIED) - warnx("Cannot sort on %s, sort key ignored\n", + warnx("Cannot sort on %s, sort key ignored", vent->var->name); } @@ -558,7 +558,7 @@ pick_representative_lwp(struct kinfo_proc2 *ki, struct kinfo_lwp *kl, int nlwps) break; } /* Error condition! */ - warnx("Inconsistent LWP state for process %d\n", ki->p_pid); + warnx("Inconsistent LWP state for process %d", ki->p_pid); return kl; }