]> err.no Git - linux-2.6/commitdiff
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 6ac81e35355cd39fc8232698b790de75f077e59b..2759604629703e6ea9d9c2e6735478a9cd5a9e1c 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;
                }
        }