diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-02-12 16:32:35 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-03-04 11:02:26 +0200 |
commit | 19cd7b7de1804a50264dfd5c6ba3c6d332362a77 (patch) | |
tree | 2f0933a3d1259345856098cb6358d8b9cacccbcf /drivers/mtd | |
parent | fc398769ac5cbfdf4dc16a7ba657b284abcc92f5 (diff) | |
download | op-kernel-dev-19cd7b7de1804a50264dfd5c6ba3c6d332362a77.zip op-kernel-dev-19cd7b7de1804a50264dfd5c6ba3c6d332362a77.tar.gz |
UBI: fix error message
Make it print "UBI error: cannot attach mtd4"
instead of "UBI error: cannot attach 4"
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 6ac81e3..2759604 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1000,8 +1000,8 @@ static int __init ubi_init(void) mutex_unlock(&ubi_devices_mutex); if (err < 0) { put_mtd_device(mtd); - printk(KERN_ERR "UBI error: cannot attach %s\n", - p->name); + printk(KERN_ERR "UBI error: cannot attach mtd%d\n", + mtd->index); goto out_detach; } } |