kernel/4.4: add missing newline character to UBI messages
[openwrt/staging/chunkeey.git] / target / linux / generic / pending-4.4 / 490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
index f08f9b4a7cb2795bfc6f04832d355056a79b39b5..b15066f757c6e5ad5f7b33350bb543deee7838a9 100644 (file)
@@ -36,7 +36,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +              /* check for a valid ubi magic */
 +              err = mtd_read(mtd, 0, 4, &len, (void *) magic);
 +              if (!err && len == 4 && strncmp(magic, "UBI#", 4)) {
-+                      pr_err("UBI error: no valid UBI magic found inside mtd%d", mtd->index);
++                      pr_err("UBI error: no valid UBI magic found inside mtd%d\n", mtd->index);
 +                      put_mtd_device(mtd);
 +                      return;
 +              }
@@ -47,11 +47,11 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +                  mtd->type == MTD_DATAFLASH ||
 +                  mtd->type == MTD_MLCNANDFLASH) {
 +                      mutex_lock(&ubi_devices_mutex);
-+                      pr_notice("UBI: auto-attach mtd%d", mtd->index);
++                      pr_notice("UBI: auto-attach mtd%d\n", mtd->index);
 +                      err = ubi_attach_mtd_dev(mtd, UBI_DEV_NUM_AUTO, 0, 0);
 +                      mutex_unlock(&ubi_devices_mutex);
 +                      if (err < 0) {
-+                              pr_err("UBI error: cannot attach mtd%d", mtd->index);
++                              pr_err("UBI error: cannot attach mtd%d\n", mtd->index);
 +                              put_mtd_device(mtd);
 +                      }
 +              }