Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19cd7b7d authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBI: fix error message



Make it print "UBI error: cannot attach mtd4"
instead of "UBI error: cannot attach 4"

Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent fc398769
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}
	}