Patchwork [2/2] mtd: nand: pxa3xx: Print actual ECC strength in error message

login
register
mail settings
Submitter Ezequiel Garcia
Date Feb. 27, 2014, 5:13 p.m.
Message ID <1393521206-4623-3-git-send-email-ezequiel.garcia@free-electrons.com>
Download mbox | patch
Permalink /patch/324868/
State Accepted
Commit e634ce51baa52c131e4a35c01bba9e596a0eb86d
Headers show

Comments

Ezequiel Garcia - Feb. 27, 2014, 5:13 p.m.
The actual ECC strength used to select the ECC scheme is 'ecc_strength'.
Use it in the error message.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 drivers/mtd/nand/pxa3xx_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 1e136a6..7588fe2 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1530,7 +1530,7 @@  KEEP_CONFIG:
 	if (!ret) {
 		dev_err(&info->pdev->dev,
 			"ECC strength %d at page size %d is not supported\n",
-			chip->ecc_strength_ds, mtd->writesize);
+			ecc_strength, mtd->writesize);
 		return -ENODEV;
 	}