Commit d8c0372b authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Brian Norris

mtd: gpmi: remove line breaks from error messages and improve wording

Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 6a760966
...@@ -285,9 +285,8 @@ static int legacy_set_geometry(struct gpmi_nand_data *this) ...@@ -285,9 +285,8 @@ static int legacy_set_geometry(struct gpmi_nand_data *this)
geo->ecc_strength = get_ecc_strength(this); geo->ecc_strength = get_ecc_strength(this);
if (!gpmi_check_ecc(this)) { if (!gpmi_check_ecc(this)) {
dev_err(this->dev, dev_err(this->dev,
"We can not support this nand chip." "required ecc strength of the NAND chip: %d is not supported by the GPMI controller (%d)\n",
" Its required ecc strength(%d) is beyond our" geo->ecc_strength,
" capability(%d).\n", geo->ecc_strength,
this->devdata->bch_max_ecc_strength); this->devdata->bch_max_ecc_strength);
return -EINVAL; return -EINVAL;
} }
...@@ -1597,8 +1596,9 @@ static int mx23_boot_init(struct gpmi_nand_data *this) ...@@ -1597,8 +1596,9 @@ static int mx23_boot_init(struct gpmi_nand_data *this)
dev_dbg(dev, "Transcribing mark in block %u\n", block); dev_dbg(dev, "Transcribing mark in block %u\n", block);
ret = chip->block_markbad(mtd, byte); ret = chip->block_markbad(mtd, byte);
if (ret) if (ret)
dev_err(dev, "Failed to mark block bad with " dev_err(dev,
"ret %d\n", ret); "Failed to mark block bad with ret %d\n",
ret);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment