From: Theodore Ts'o Date: Wed, 20 Oct 1999 18:06:29 +0000 (+0000) Subject: ChangeLog, mke2fs.c: X-Git-Tag: E2FSPROGS-1_16~19 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=7671433a9daad089af037f84b365d640e1adf252;p=tools%2Fe2fsprogs.git ChangeLog, mke2fs.c: Fix display bug when printing out the number of superblocks. Suggested by Yann Dirson. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index c919cfb..5bedb96 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +1999-09-15 + + * mke2fs.c (show_stats): Fix display bug when printing out the + number of superblocks. Suggested by Yann Dirson. + 1999-09-08 * partinfo.c: Fix minor compilation bugs pointed out by Yann diff --git a/misc/mke2fs.c b/misc/mke2fs.c index c8ac45e..0aad8e5 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #ifdef linux #include @@ -599,6 +598,8 @@ static void show_stats(ext2_filsys fs) group_block += s->s_blocks_per_group; if (!ext2fs_bg_has_super(fs, i)) continue; + if (i != 1) + printf(", "); need = log10(group_block) + 2; if (need > col_left) { printf("\n\t"); @@ -606,8 +607,6 @@ static void show_stats(ext2_filsys fs) } col_left -= need; printf("%u", group_block); - if (i != fs->group_desc_count - 1) - printf(", "); } printf("\n\n"); }