From: Ezequiel Garcia Date: Thu, 27 Feb 2014 17:13:26 +0000 (-0300) Subject: mtd: nand: pxa3xx: Print actual ECC strength in error message X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e634ce51baa52c131e4a35c01bba9e596a0eb86d;p=linux-beck.git mtd: nand: pxa3xx: Print actual ECC strength in error message The actual ECC strength used to select the ECC scheme is 'ecc_strength'. Use it in the error message. Signed-off-by: Ezequiel Garcia Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 1e136a6d03d9..7588fe2c127f 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; }