Patchwork [U-Boot,v4,5/9] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()

login
register
mail settings
Submitter Benoît Thébaudeau
Date Feb. 6, 2013, 9:37 p.m.
Message ID <1360186636-6041-5-git-send-email-benoit.thebaudeau@advansee.com>
Download mbox | patch
Permalink /patch/218763/
State Changes Requested
Delegated to: Stefano Babic
Headers show

Comments

Benoît Thébaudeau - Feb. 6, 2013, 9:37 p.m.
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did
not match the page being worked on.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
---
Changes in v4:
 - New patch.

Changes in v3: None
Changes in v2: None

 drivers/mtd/nand/mxc_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index cead757..6a709c5 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -450,7 +450,7 @@  static int mxc_nand_read_oob_syndrome(struct mtd_info *mtd,
 
 	MTDDEBUG(MTD_DEBUG_LEVEL0,
 			"%s: Reading OOB area of page %u to oob %p\n",
-			 __FUNCTION__, host->page_addr, buf);
+			 __FUNCTION__, page, buf);
 
 	chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page);
 	for (i = 0; i < chip->ecc.steps; i++) {