From c53c491d1656754dd32456588732d76012278a7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Thu, 22 Aug 2013 16:30:59 +0200 Subject: [PATCH] mtd: nand: improve error message 'Invalid ECC parameters' --- drivers/mtd/nand/nand_base.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2