mtd/drivers/mtd/nand nand_bbt.c,1.11,1.12

gleixner at infradead.org gleixner at infradead.org
Tue Jun 1 09:11:03 EDT 2004


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

Modified Files:
	nand_bbt.c 
Log Message:
Add some debug info. 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.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- nand_bbt.c	28 May 2004 23:20:13 -0000	1.11
+++ nand_bbt.c	1 Jun 2004 13:11:00 -0000	1.12
@@ -997,6 +997,9 @@
 	block = (int) (offs >> (this->erase_shift - 1));
 	res = this->bbt[block >> 3] & (0x3 << (block & 0x06));
 	res >>= (block & 0x06);
+
+	DEBUG (MTD_DEBUG_LEVEL0, "nand_isbad_bbt(): bbt info for offs 0x%08x: 0x%02x ", offs, res);
+
 	switch ((int)res) {
 	case 0x00:	return 0;
 	case 0x01:	return 1;





More information about the linux-mtd-cvs mailing list