From 8d2effea23e938631126a7888008a0637e13b389 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Mon, 11 May 2009 16:03:55 +0200 Subject: mtd: Update MTD infrastructure to support 64bit device size This patch brings the U-Boot MTD infrastructure in sync with the current Linux MTD version (2.6.30-rc3). Biggest change is the 64bit device size support and a resync of the mtdpart.c file which has seen multiple fixes meanwhile. Signed-off-by: Stefan Roese Cc: Scott Wood Cc: Kyungmin Park --- common/cmd_onenand.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/cmd_onenand.c') diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index 5832ff8d3..e8f06d7f4 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c @@ -19,6 +19,10 @@ #include +#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; } -- cgit v1.2.3-70-g09d2