diff options
author | billf <billf@FreeBSD.org> | 1999-08-21 22:07:27 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-08-21 22:07:27 +0000 |
commit | f1ca67e0d8e4dc83d198e624bbbf8c52dedb309c (patch) | |
tree | c1d2000fc78d77e492e6f2f1064ef456539dc77e /sbin/newfs/mkfs.c | |
parent | 555d6b767ccdade3693f3bd6e66f869adfcafaff (diff) | |
download | FreeBSD-src-f1ca67e0d8e4dc83d198e624bbbf8c52dedb309c.zip FreeBSD-src-f1ca67e0d8e4dc83d198e624bbbf8c52dedb309c.tar.gz |
Don't print a "," after the last superblock.
Submitted by: adrian
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 59957fb..70e1c55 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95"; #endif static const char rcsid[] = - "$Id: mkfs.c,v 1.26 1998/08/27 07:38:33 dfr Exp $"; + "$Id: mkfs.c,v 1.27 1999/02/09 17:19:18 dillon Exp $"; #endif /* not lint */ #include <err.h> @@ -686,8 +686,9 @@ next: initcg(cylno, utime); if (mfs) continue; - j = sprintf(tmpbuf, " %ld,", - fsbtodb(&sblock, cgsblock(&sblock, cylno))); + j = sprintf(tmpbuf, " %ld%s", + fsbtodb(&sblock, cgsblock(&sblock, cylno)), + cylno < (sblock.fs_ncg-1) ? "," : "" ); if (i + j >= width) { printf("\n"); i = 0; |