mtd/drivers/mtd/nand nand_bbt.c,1.5,1.6

gleixner at infradead.org gleixner at infradead.org
Thu May 27 18:03:13 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv18827

Modified Files:
	nand_bbt.c 
Log Message:
Show bbt found per chip. Signed-off-by: Thomas Gleixner <tglx at linutronix.de>

Index: nand_bbt.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_bbt.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- nand_bbt.c	27 May 2004 22:01:03 -0000	1.5
+++ nand_bbt.c	27 May 2004 22:03:10 -0000	1.6
@@ -330,10 +330,12 @@
 	}
 	/* Check, if we found a bbt for each requested chip */
 	for (i = 0; i < chips; i++) {
-		if (td->pages[i] == -1)
+		printk (KERN_DEBUG "Bad block table found at page %d, version %d\n", td->pages[i], td->version);
+		if (td->pages[i] == -1) {
+			printk (KERN_WARNING "Bad block table not found for chip %d\n", i);
 			return -1;
+		}
 	}
-	printk (KERN_DEBUG "Bad block table found at page %d, version %d\n", td->pages[0], td->version);
 	return 0;
 }
 





More information about the linux-mtd-cvs mailing list