Index: yaffs/utils/mkyaffs.c =================================================================== --- yaffs.orig/utils/mkyaffs.c +++ yaffs/utils/mkyaffs.c @@ -88,11 +88,13 @@ { unsigned long addr; unsigned long offset; + int damaged_count = 0; int fd; int img=-1; int optcnt = 1; int usemtdecc = 0; int imglen = 0; + int img_written = 0; int showHelp = 0; struct mtd_oob_buf oob = {0, 16, (unsigned char *) &oobbuf}; mtd_info_t meminfo; @@ -197,6 +199,7 @@ if(countBits[oobbuf[5]] < 7) { + damaged_count++; printf("Block at 0x08%lx is damaged and is not being formatted\n",addr); } else @@ -218,6 +221,7 @@ for(offset = 0; offset