Move data partition initialization to core.

Change-Id: I3c2b4668593391026da028194503fc87246e44ba
diff --git a/hw/goldfish_nand.c b/hw/goldfish_nand.c
index c9567d3..6d2182f 100644
--- a/hw/goldfish_nand.c
+++ b/hw/goldfish_nand.c
@@ -794,7 +794,7 @@
                 exit(1);
             }
             if(do_write(rwfd, dev->data, read_size) != read_size) {
-                XLOG("could not write file %s, %s\n", initfilename, strerror(errno));
+                XLOG("could not write file %s, %s\n", rwfilename, strerror(errno));
                 exit(1);
             }
         } while(read_size == dev->erase_size);