Don't print a "," after the last superblock.
Submitted by: adrian
This commit is contained in:
parent
308128909d
commit
c87d5825e4
@ -36,7 +36,7 @@
|
|||||||
static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95";
|
static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
@ -686,8 +686,9 @@ mkfs(pp, fsys, fi, fo)
|
|||||||
initcg(cylno, utime);
|
initcg(cylno, utime);
|
||||||
if (mfs)
|
if (mfs)
|
||||||
continue;
|
continue;
|
||||||
j = sprintf(tmpbuf, " %ld,",
|
j = sprintf(tmpbuf, " %ld%s",
|
||||||
fsbtodb(&sblock, cgsblock(&sblock, cylno)));
|
fsbtodb(&sblock, cgsblock(&sblock, cylno)),
|
||||||
|
cylno < (sblock.fs_ncg-1) ? "," : "" );
|
||||||
if (i + j >= width) {
|
if (i + j >= width) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
i = 0;
|
i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user