mirror of
https://xff.cz/git/u-boot/
synced 2025-09-06 03:02:18 +02:00
nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did not match the page being worked on. By the way, replace the GCC-specific __FUNCTION__ with __func__. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Acked-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
68fbc0e686
commit
78ee7b1729
@@ -409,7 +409,7 @@ static int mxc_nand_read_oob_syndrome(struct mtd_info *mtd,
|
|||||||
|
|
||||||
MTDDEBUG(MTD_DEBUG_LEVEL0,
|
MTDDEBUG(MTD_DEBUG_LEVEL0,
|
||||||
"%s: Reading OOB area of page %u to oob %p\n",
|
"%s: Reading OOB area of page %u to oob %p\n",
|
||||||
__FUNCTION__, host->page_addr, buf);
|
__func__, page, buf);
|
||||||
|
|
||||||
chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page);
|
chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page);
|
||||||
for (i = 0; i < chip->ecc.steps; i++) {
|
for (i = 0; i < chip->ecc.steps; i++) {
|
||||||
|
Reference in New Issue
Block a user