From 398c91fa04d73b220bc1389532f820e6cc422138 Mon Sep 17 00:00:00 2001 From: wrstuden Date: Fri, 30 Jul 1999 17:44:01 +0000 Subject: [PATCH] Adjust column-sizing code to keep output in 76 character lines, so output doesn't wrap in sysinst. --- sbin/newfs/mkfs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 064a214fc932..557238963443 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: mkfs.c,v 1.36 1999/05/14 22:36:50 wrstuden Exp $ */ +/* $NetBSD: mkfs.c,v 1.37 1999/07/30 17:44:01 wrstuden Exp $ */ /* * Copyright (c) 1980, 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95"; #else -__RCSID("$NetBSD: mkfs.c,v 1.36 1999/05/14 22:36:50 wrstuden Exp $"); +__RCSID("$NetBSD: mkfs.c,v 1.37 1999/07/30 17:44:01 wrstuden Exp $"); #endif #endif /* not lint */ @@ -601,11 +601,12 @@ next: } /* * Now determine how wide each column will be, and calculate how - * many columns will fit in an 80 char line. + * many columns will fit in a 76 char line. 76 is the width of the + * subwindows in sysinst. */ printcolwidth = count_digits( fsbtodb(&sblock, cgsblock(&sblock, sblock.fs_ncg -1))); - nprintcols = 80 / (printcolwidth + 2); + nprintcols = 76 / (printcolwidth + 2); /* * Now build the cylinders group blocks and * then print out indices of cylinder groups.