summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2006-05-28 15:43:42 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2006-05-28 15:43:42 +0000
commitbe45eb300b747d87f8d5fecde6c2378b91a61153 (patch)
tree68c0a17c594aa4e3e6475ace540afc82ed2a1055
parent1d60868897439fe3fe666da0b753c72274b53331 (diff)
revert a part of last commit causes newline
proplems during boot. pointed out by sturm@
-rw-r--r--sbin/fsck/fsutil.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c
index 768f96cb3fa..6c25aa5aff5 100644
--- a/sbin/fsck/fsutil.c
+++ b/sbin/fsck/fsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsutil.c,v 1.14 2006/05/27 22:30:09 thib Exp $ */
+/* $OpenBSD: fsutil.c,v 1.15 2006/05/28 15:43:41 thib Exp $ */
/* $NetBSD: fsutil.c,v 1.2 1996/10/03 20:06:31 christos Exp $ */
/*
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: fsutil.c,v 1.14 2006/05/27 22:30:09 thib Exp $";
+static const char rcsid[] = "$OpenBSD: fsutil.c,v 1.15 2006/05/28 15:43:41 thib Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -93,8 +93,9 @@ vmsg(int fatal, const char *fmt, va_list ap)
(void) printf("%s: ", dev);
(void) vprintf(fmt, ap);
- printf("\n");
+
if (fatal && preen) {
+ (void) printf("\n");
(void) printf(
"%s: UNEXPECTED INCONSISTENCY; RUN %s MANUALLY.\n",
dev, __progname);