]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/nand_base.c
mtd: nand: improve error message 'Invalid ECC parameters'
[karo-tx-uboot.git] / drivers / mtd / nand / nand_base.c
index 97de8cdd017ac30e481bcc118bad7f734c0e996e..a2587b6d25c2061c8926784f8bf8347de014adf3 100644 (file)
@@ -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;