Module Name:    src
Committed By:   christos
Date:           Tue Jun 16 22:31:08 UTC 2015

Modified Files:
        src/bin/pax: tar.c
        src/bin/ps: ps.c

Log Message:
remove \n from error messages


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/bin/pax/tar.c
cvs rdiff -u -r1.82 -r1.83 src/bin/ps/ps.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/pax/tar.c
diff -u src/bin/pax/tar.c:1.71 src/bin/pax/tar.c:1.72
--- src/bin/pax/tar.c:1.71	Thu Jan 24 12:43:44 2013
+++ src/bin/pax/tar.c	Tue Jun 16 18:31:08 2015
@@ -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);
 	}
 
 	/*

Index: src/bin/ps/ps.c
diff -u src/bin/ps/ps.c:1.82 src/bin/ps/ps.c:1.83
--- src/bin/ps/ps.c:1.82	Sat Jun 28 13:32:27 2014
+++ src/bin/ps/ps.c	Tue Jun 16 18:31:08 2015
@@ -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, 19
 #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_pro
 		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;
 }
 

Reply via email to