Browse Source

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>
Josh Wu 9 years ago
parent
commit
4c6a6ea3e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/mtd/nand/atmel_nand.c

+ 2 - 2
drivers/mtd/nand/atmel_nand.c

@@ -821,8 +821,8 @@ static int atmel_pmecc_nand_init_params(struct nand_chip *nand,
 	 * from ONFI.
 	 * from ONFI.
 	 */
 	 */
 	if (pmecc_choose_ecc(host, nand, &cap, &sector_size)) {
 	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;
 		return -EINVAL;
 	}
 	}