uint64_t is 'unsigned long' in n64 build, so compiler is unhappy if the

format specifier in printf is "%llu".

Use "%ju" instead.
This commit is contained in:
neel 2010-08-06 05:24:41 +00:00
parent 7a5a021203
commit e786965646

View File

@ -189,11 +189,11 @@ mips_init(void)
("CFE DRAM region is not available?"));
if (bootverbose)
printf("cfe_enummem: 0x%016jx/%llu.\n", addr, len);
printf("cfe_enummem: 0x%016jx/%ju.\n", addr, len);
if (maxmem != 0) {
if (addr >= maxmem) {
printf("Ignoring %llu bytes of memory at 0x%jx "
printf("Ignoring %ju bytes of memory at 0x%jx "
"that is above maxmem %dMB\n",
len, addr,
(int)(maxmem / (1024 * 1024)));
@ -201,7 +201,7 @@ mips_init(void)
}
if (addr + len > maxmem) {
printf("Ignoring %llu bytes of memory "
printf("Ignoring %ju bytes of memory "
"that is above maxmem %dMB\n",
(addr + len) - maxmem,
(int)(maxmem / (1024 * 1024)));