diff options
author | Tanya Brokhman <tlinder@codeaurora.org> | 2014-11-09 13:06:25 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-01-28 16:09:09 +0100 |
commit | 45fc5c81d03601da36e8217e9830d053ef2d7db6 (patch) | |
tree | 24b9ed617aa7984b302a1badc7da55b8f97eadc5 /drivers/mtd/ubi/build.c | |
parent | fee1756d80c24d5a3171cb9f76d612e512439dd2 (diff) | |
download | linux-stable-45fc5c81d03601da36e8217e9830d053ef2d7db6.tar.gz linux-stable-45fc5c81d03601da36e8217e9830d053ef2d7db6.tar.bz2 linux-stable-45fc5c81d03601da36e8217e9830d053ef2d7db6.zip |
UBI: extend UBI layer debug/messaging capabilities - cosmetics
Some cosmetic fixes to the patch "UBI: Extend UBI layer debug/messaging
capabilities".
Signed-off-by: Tanya Brokhman <tlinder@codeaurora.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 3405be46ebe9..ba01a8d22d28 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -923,7 +923,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, /* Make sure ubi_num is not busy */ if (ubi_devices[ubi_num]) { - ubi_err(ubi, "ubi%d already exists", ubi_num); + ubi_err(ubi, "already exists"); return -EEXIST; } } @@ -973,7 +973,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, mutex_init(&ubi->fm_mutex); init_rwsem(&ubi->fm_sem); - ubi_msg(ubi, "attaching mtd%d to ubi%d", mtd->index, ubi_num); + ubi_msg(ubi, "attaching mtd%d", mtd->index); err = io_init(ubi, max_beb_per1024); if (err) @@ -1428,7 +1428,7 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) } if (len == 0) { - pr_err("UBI warning: empty 'mtd=' parameter - ignored\n"); + pr_warn("UBI warning: empty 'mtd=' parameter - ignored\n"); return 0; } |