From: Lothar Waßmann Date: Thu, 22 Aug 2013 14:30:59 +0000 (+0200) Subject: mtd: nand: improve error message 'Invalid ECC parameters' X-Git-Tag: KARO-TX6-2013-08-23^2~7 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=c53c491d1656754dd32456588732d76012278a7d mtd: nand: improve error message 'Invalid ECC parameters' --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 97de8cdd01..a2587b6d25 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -3310,6 +3310,8 @@ int nand_scan_tail(struct mtd_info *mtd) chip->ecc.steps = mtd->writesize / chip->ecc.size; if (chip->ecc.steps * chip->ecc.size != mtd->writesize) { pr_warn("Invalid ECC parameters\n"); + pr_warn("steps=%d size=%d writesize=%d\n", + chip->ecc.steps, chip->ecc.size, mtd->writesize); BUG(); } chip->ecc.total = chip->ecc.steps * chip->ecc.bytes;