]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: gpmi: remove line breaks from error messages and improve wording
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 12 Jun 2014 13:20:42 +0000 (15:20 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 28 Jul 2014 05:06:30 +0000 (22:06 -0700)
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c

index 31032b17dae58a26d4600e6730f8695737bf1943..16a533a78edd06be1df4f3f2312a2f77d8d34fd7 100644 (file)
@@ -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;
        }
@@ -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);
                }
        }