提交 19cd7b7d 编写于 作者: A Artem Bityutskiy

UBI: fix error message

Make it print "UBI error: cannot attach mtd4"
instead of "UBI error: cannot attach 4"
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 fc398769
...@@ -1000,8 +1000,8 @@ static int __init ubi_init(void) ...@@ -1000,8 +1000,8 @@ static int __init ubi_init(void)
mutex_unlock(&ubi_devices_mutex); mutex_unlock(&ubi_devices_mutex);
if (err < 0) { if (err < 0) {
put_mtd_device(mtd); put_mtd_device(mtd);
printk(KERN_ERR "UBI error: cannot attach %s\n", printk(KERN_ERR "UBI error: cannot attach mtd%d\n",
p->name); mtd->index);
goto out_detach; goto out_detach;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册