]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings
authorWolfgang Denk <wd@denx.de>
Thu, 8 Sep 2011 02:10:18 +0000 (02:10 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:00:18 +0000 (00:00 +0200)
Fix these:
yaffscfg.c: In function 'cmd_yaffs_mread_file':
yaffscfg.c:316: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'char *'
yaffscfg.c: In function 'cmd_yaffs_ls': yaffscfg.c:371: warning: format '%7d' expects type 'int', but argument 3 has type 'off_t'

Signed-off-by: Wolfgang Denk <wd@denx.de>
fs/yaffs2/yaffscfg.c

index 16e84a421039b46788cff2412b1ab5f26f307a4b..01399ea8a27b96c35d0608d74accde3730b21159 100644 (file)
@@ -313,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)
        {
@@ -368,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
                        {