Skip to content

Commit

Permalink
mtd: gpmi: remove line breaks from error messages and improve wording
Browse files Browse the repository at this point in the history
Signed-off-by: Lothar Waßmann <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
  • Loading branch information
lw-karo authored and computersforpeace committed Jul 28, 2014
1 parent 6a76096 commit d8c0372
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/mtd/nand/gpmi-nand/gpmi-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,8 @@ static int legacy_set_geometry(struct gpmi_nand_data *this)
geo->ecc_strength = get_ecc_strength(this);
if (!gpmi_check_ecc(this)) {
dev_err(this->dev,
"We can not support this nand chip."
" Its required ecc strength(%d) is beyond our"
" capability(%d).\n", geo->ecc_strength,
"required ecc strength of the NAND chip: %d is not supported by the GPMI controller (%d)\n",
geo->ecc_strength,
this->devdata->bch_max_ecc_strength);
return -EINVAL;
}
Expand Down Expand Up @@ -1597,8 +1596,9 @@ static int mx23_boot_init(struct gpmi_nand_data *this)
dev_dbg(dev, "Transcribing mark in block %u\n", block);
ret = chip->block_markbad(mtd, byte);
if (ret)
dev_err(dev, "Failed to mark block bad with "
"ret %d\n", ret);
dev_err(dev,
"Failed to mark block bad with ret %d\n",
ret);
}
}

Expand Down

0 comments on commit d8c0372

Please sign in to comment.