common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL
There is more and more usage of printing 64bit values, so enable this feature generally, and delete the CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL defines. Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
committed by
Wolfgang Denk
parent
00b6d927ba
commit
4b142febff
@@ -364,13 +364,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
||||
} else if (strncmp(argv[1], "me", 2) == 0) {
|
||||
uint64_t addr, size;
|
||||
int err;
|
||||
#ifdef CONFIG_SYS_64BIT_STRTOUL
|
||||
addr = simple_strtoull(argv[2], NULL, 16);
|
||||
size = simple_strtoull(argv[3], NULL, 16);
|
||||
#else
|
||||
addr = simple_strtoul(argv[2], NULL, 16);
|
||||
size = simple_strtoul(argv[3], NULL, 16);
|
||||
#endif
|
||||
addr = simple_strtoull(argv[2], NULL, 16);
|
||||
size = simple_strtoull(argv[3], NULL, 16);
|
||||
err = fdt_fixup_memory(working_fdt, addr, size);
|
||||
if (err < 0)
|
||||
return err;
|
||||
@@ -402,13 +397,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
||||
} else if (argv[2][0] == 'a') {
|
||||
uint64_t addr, size;
|
||||
int err;
|
||||
#ifdef CONFIG_SYS_64BIT_STRTOUL
|
||||
addr = simple_strtoull(argv[3], NULL, 16);
|
||||
size = simple_strtoull(argv[4], NULL, 16);
|
||||
#else
|
||||
addr = simple_strtoul(argv[3], NULL, 16);
|
||||
size = simple_strtoul(argv[4], NULL, 16);
|
||||
#endif
|
||||
err = fdt_add_mem_rsv(working_fdt, addr, size);
|
||||
|
||||
if (err < 0) {
|
||||
|
||||
@@ -1354,7 +1354,7 @@ ulong ide_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
|
||||
}
|
||||
|
||||
if ((c&(ATA_STAT_DRQ|ATA_STAT_BUSY|ATA_STAT_ERR)) != ATA_STAT_DRQ) {
|
||||
#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
|
||||
#if defined(CONFIG_SYS_64BIT_LBA)
|
||||
printf ("Error (no IRQ) dev %d blk %Ld: status 0x%02x\n",
|
||||
device, blknr, c);
|
||||
#else
|
||||
@@ -1444,7 +1444,7 @@ ulong ide_write (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
|
||||
c = ide_wait (device, IDE_TIME_OUT); /* can't take over 500 ms */
|
||||
|
||||
if ((c&(ATA_STAT_DRQ|ATA_STAT_BUSY|ATA_STAT_ERR)) != ATA_STAT_DRQ) {
|
||||
#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
|
||||
#if defined(CONFIG_SYS_64BIT_LBA)
|
||||
printf ("Error (no IRQ) dev %d blk %Ld: status 0x%02x\n",
|
||||
device, blknr, c);
|
||||
#else
|
||||
|
||||
@@ -19,10 +19,6 @@
|
||||
|
||||
#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;
|
||||
|
||||
@@ -436,11 +436,7 @@ phys_size_t getenv_bootm_size(void)
|
||||
char *s = getenv ("bootm_size");
|
||||
if (s) {
|
||||
phys_size_t tmp;
|
||||
#ifdef CONFIG_SYS_64BIT_STRTOUL
|
||||
tmp = (phys_size_t)simple_strtoull (s, NULL, 16);
|
||||
#else
|
||||
tmp = (phys_size_t)simple_strtoul (s, NULL, 16);
|
||||
#endif
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user