mtd/drivers/mtd/nand nand.c,1.32,1.33
gleixner at infradead.org
gleixner at infradead.org
Mon Nov 11 10:47:19 EST 2002
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv24676
Modified Files:
nand.c
Log Message:
debug output
Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- nand.c 13 Sep 2002 14:27:37 -0000 1.32
+++ nand.c 11 Nov 2002 15:47:17 -0000 1.33
@@ -102,6 +102,9 @@
*
* 09-04-2002 tglx: fixed write_verify (John Hall (john.hall at optionexist.co.uk))
*
+ * 11-11-2002 tglx: fixed debug output in nand_write_page
+ * (John Hall (john.hall at optionexist.co.uk))
+ *
* $Id$
*
* This program is free software; you can redistribute it and/or modify
@@ -459,7 +462,7 @@
/* See if device thinks it succeeded */
if (status & 0x01) {
- DEBUG (MTD_DEBUG_LEVEL0, "nand_write_ecc: " "Failed write, page 0x%08x, ", page);
+ DEBUG (MTD_DEBUG_LEVEL0, "%s: " "Failed write, page 0x%08x, ", __FUNCTION__, page);
return -EIO;
}
@@ -482,7 +485,7 @@
/* Loop through and verify the data */
for (i = col; i < last; i++) {
if (this->data_buf[i] != readb (this->IO_ADDR_R)) {
- DEBUG (MTD_DEBUG_LEVEL0, "nand_write_ecc: " "Failed write verify, page 0x%08x ", page);
+ DEBUG (MTD_DEBUG_LEVEL0, "%s: " "Failed write verify, page 0x%08x ", __FUNCTION__, page);
return -EIO;
}
}
@@ -491,7 +494,7 @@
if (oob_buf) {
for (i = 0; i < mtd->oobsize; i++) {
if (oob_data[i] != readb (this->IO_ADDR_R)) {
- DEBUG (MTD_DEBUG_LEVEL0, "nand_write_ecc: " "Failed write verify, page 0x%08x ", page);
+ DEBUG (MTD_DEBUG_LEVEL0, "%s: " "Failed write verify, page 0x%08x ", __FUNCTION__, page);
return -EIO;
}
}
@@ -512,8 +515,8 @@
for (i = 0; i < ecc_bytes; i++) {
if (oob_data[oob_config[i]] != ecc_code[i]) {
DEBUG (MTD_DEBUG_LEVEL0,
- "nand_write_ecc: Failed ECC write "
- "verify, page 0x%08x, " "%6i bytes were succesful\n", page, i);
+ "%s: Failed ECC write "
+ "verify, page 0x%08x, " "%6i bytes were succesful\n", __FUNCTION__, page, i);
return -EIO;
}
}
More information about the linux-mtd-cvs
mailing list