[source] kernel: fix ubi auto attach logging

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 2 00:11:39 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/97e6b67291036451683cb94ee6b91d07fdd10af5

commit 97e6b67291036451683cb94ee6b91d07fdd10af5
Author: John Crispin <john at phrozen.org>
AuthorDate: Sun Apr 2 07:50:41 2017 +0200

    kernel: fix ubi auto attach logging
    
    The patch is missing a trailing new line
    
    Signed-off-by: John Crispin <john at phrozen.org>
---
 ...490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/target/linux/generic/patches-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch b/target/linux/generic/patches-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
index 25ded53..52a208a 100644
--- a/target/linux/generic/patches-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
+++ b/target/linux/generic/patches-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
@@ -9,8 +9,10 @@ Signed-off-by: Daniel Golle <daniel at 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 at 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) {



More information about the lede-commits mailing list