]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/yaffscfg.c
spl, nand: add 4bit HW ecc oob first nand_read_page function
[u-boot] / fs / yaffs2 / yaffscfg.c
index 3beb34d14592d2c0cfa532520405626b240dc81b..01399ea8a27b96c35d0608d74accde3730b21159 100644 (file)
@@ -34,7 +34,7 @@
 #include "malloc.h"
 #endif
 
-unsigned yaffs_traceMask = 0xFFFFFFFF;
+unsigned yaffs_traceMask = 0x0; /* Disable logging */
 static int yaffs_errno = 0;
 
 void yaffsfs_SetError(int err)
@@ -121,6 +121,9 @@ int yaffs_StartUp(void)
        yaffs_Device *flashDev = calloc(1, sizeof(yaffs_Device));
        yaffsfs_config[0].dev = flashDev;
 
+       /* store the mtd device for later use */
+       flashDev->genericDevice = mtd;
+
        // Stuff to configure YAFFS
        // Stuff to initialise anything special (eg lock semaphore).
        yaffsfs_LocalInitialisation();
@@ -310,7 +313,7 @@ void cmd_yaffs_mread_file(char *fn, char *addr)
 
        yaffs_stat(fn,&s);
 
-       printf ("Copy %s to 0x%08x... ", fn, addr);
+       printf ("Copy %s to 0x%p... ", fn, addr);
        h = yaffs_open(fn, O_RDWR,0);
        if(h<0)
        {
@@ -365,7 +368,7 @@ void cmd_yaffs_ls(const char *mountpt, int longlist)
                        {
                                sprintf(tempstr, "%s/%s", mountpt, de->d_name);
                                yaffs_stat(tempstr, &stat);
-                               printf("%-25s\t%7d\n",de->d_name, stat.st_size);
+                               printf("%-25s\t%7ld\n",de->d_name, stat.st_size);
                        }
                        else
                        {