remove \n from error messages

This commit is contained in:
christos 2015-06-16 22:31:08 +00:00
parent b921b70209
commit 7da746ab02
2 changed files with 7 additions and 7 deletions

View File

@ -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);
}
/*

View File

@ -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;
}