UBI: fix error message
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 12 Feb 2008 14:32:35 +0000 (16:32 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 4 Mar 2008 09:02:26 +0000 (11:02 +0200)
Make it print "UBI error: cannot attach mtd4"
instead of "UBI error: cannot attach 4"

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c

index 6ac81e3..2759604 100644 (file)
@@ -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;
                }
        }