mtd/fs/jffs2 wbuf.c,1.40,1.41
David Woodhouse
dwmw2 at infradead.org
Fri Aug 29 11:31:47 EDT 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv29897
Modified Files:
wbuf.c
Log Message:
Be more explicit when reporting an apparently-bad block.
Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- wbuf.c 25 Aug 2003 13:24:13 -0000 1.40
+++ wbuf.c 29 Aug 2003 15:31:44 -0000 1.41
@@ -678,7 +678,8 @@
/* Check for bad block marker */
if (buf[c->badblock_pos] != 0xff) {
- D1 (printk (KERN_WARNING "jffs2_check_nand_cleanmarker(): Bad block at %08x\n", jeb->offset));
+ D1 (printk (KERN_WARNING "jffs2_check_nand_cleanmarker(): Bad block at %08x (has %02x %02x in badblock_pos %d\n",
+ jeb->offset, buf[c->badblock_pos], buf[c->badblock_pos + oob_size], c->badblock_pos));
return 2;
}
More information about the linux-mtd-cvs
mailing list