]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_onenand.c
mtd: Update MTD infrastructure to support 64bit device size
[u-boot] / common / cmd_onenand.c
index 5832ff8d36b7d613d9aa31a8faf82aaf43101f6e..e8f06d7f433bad70f62648fc7cf96ea5cc596fec 100644 (file)
 
 #include <asm/io.h>
 
+#if !defined(CONFIG_SYS_64BIT_VSPRINTF)
+#warning Please define CONFIG_SYS_64BIT_VSPRINTF for correct output!
+#endif
+
 static struct mtd_info *mtd;
 
 static loff_t next_ofs;
@@ -53,7 +57,7 @@ static int arg_off_size(int argc, char *argv[], ulong *off, size_t *size)
        }
 
        if ((*off + *size) > mtd->size) {
-               printf("total chip size (0x%x) exceeded!\n", mtd->size);
+               printf("total chip size (0x%llx) exceeded!\n", mtd->size);
                return -1;
        }