mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
fc398769ac
commit
19cd7b7de1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue