ChangeLog, badblocks.8.in, mke2fs.c:
  badblocks.8: Update documentation to note that output format of
  	badblocks is suitable for use with e2fsck -l or mke2fs -l.
  mke2fs.c (handle_bad_blocks): Fix bug so that all groups with bad
  	superblock backup blocks are printed (not just the first one).

diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 47dfc42..b00e385 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -259,9 +259,9 @@
 	 */
 	group_block = fs->super->s_first_data_block +
 		fs->super->s_blocks_per_group;
-	group_bad = 0;
 	
 	for (i = 1; i < fs->group_desc_count; i++) {
+		group_bad = 0;
 		for (j=0; j < fs->desc_blocks+1; j++) {
 			if (badblocks_list_test(bb_list, group_block +
 						j)) {