projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc39876
)
UBI: fix error message
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Tue, 12 Feb 2008 14:32:35 +0000
(16:32 +0200)
committer
Artem 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index 6ac81e35355cd39fc8232698b790de75f077e59b..2759604629703e6ea9d9c2e6735478a9cd5a9e1c 100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-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;
}
}