kernel: fix ubi auto attach logging
authorJohn Crispin <john@phrozen.org>
Sun, 2 Apr 2017 05:50:41 +0000 (07:50 +0200)
committerJohn Crispin <john@phrozen.org>
Sun, 2 Apr 2017 05:51:33 +0000 (07:51 +0200)
The patch is missing a trailing new line

Signed-off-by: John Crispin <john@phrozen.org>
target/linux/generic/patches-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch

index 25ded532e84b3c878cb94bb971d7512c72054b4f..52a208aed3e325d850893524ceadae594756dc69 100644 (file)
@@ -9,8 +9,10 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  drivers/mtd/ubi/build.c | 36 ++++++++++++++++++++++++++++++++++++
  1 file changed, 36 insertions(+)
 
---- a/drivers/mtd/ubi/build.c
-+++ b/drivers/mtd/ubi/build.c
+Index: linux-4.9.17/drivers/mtd/ubi/build.c
+===================================================================
+--- linux-4.9.17.orig/drivers/mtd/ubi/build.c
++++ linux-4.9.17/drivers/mtd/ubi/build.c
 @@ -1212,6 +1212,49 @@ static struct mtd_info * __init open_mtd
        return mtd;
  }
@@ -47,7 +49,7 @@ 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) {