Fixes debug message in do_mounts for WC.
There was an index bug that I forgot to remove from the parent patch
(an unneeded '+ 9' after root_device_name). Now when a kernel panic
is encountered, the appropriate root device name will be printed
instead of an empty string (or junk memory).
Change-Id: Ie6de75b73033eae4b98f2a862e86cdd70a91afc6
diff --git a/init/do_mounts.c b/init/do_mounts.c
index fc515f7..8af9b26 100755
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -396,7 +396,7 @@
if (!IS_ERR(mtd))
sprintf(root_device_name, "/dev/mtdblock%d", mtd->index);
else {
- printk(KERN_ERR "VFS: Unable to find mtd \"%s\"\n", root_device_name + 9);
+ printk(KERN_ERR "VFS: Unable to find mtd \"%s\"\n", root_device_name);
printk("List of all partitions:\n");
printk_all_partitions();
panic("VFS: Unable to mount root fs");