summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2016-01-25 14:06:34 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2016-01-27 13:58:59 +0100
commit4c6a6ea3e11844f1b7242d7ed4468bb80ae81369 (patch)
tree50ba3ea3447ad2334be29dc204081db8ee82b954 /drivers/mtd
parent3a2056719968c82fb0b5e079b47a146f68330879 (diff)
downloadu-boot-4c6a6ea3e11844f1b7242d7ed4468bb80ae81369.tar.gz
u-boot-4c6a6ea3e11844f1b7242d7ed4468bb80ae81369.tar.xz
u-boot-4c6a6ea3e11844f1b7242d7ed4468bb80ae81369.zip
atmel_nand: add '\n' in the end of error message for better display
Also align the open parenthesis. Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/atmel_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index e179f74229..852883bfb2 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -821,8 +821,8 @@ static int atmel_pmecc_nand_init_params(struct nand_chip *nand,
* from ONFI.
*/
if (pmecc_choose_ecc(host, nand, &cap, &sector_size)) {
- dev_err(host->dev, "The NAND flash's ECC requirement(ecc_bits: %d, sector_size: %d) are not support!",
- cap, sector_size);
+ dev_err(host->dev, "Required ECC %d bits in %d bytes not supported!\n",
+ cap, sector_size);
return -EINVAL;
}