dtc: Fix some printf() format warnings when compiling 64-bit

Currently, dtc generates a few gcc build warnings if built for a
64-bit target, due to the altered type of uint64_t and size_t.  This
patch fixes the warnings (without generating new warnings for 32-bit).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson
2008-05-30 11:34:18 +10:00
committed by Jon Loeliger
parent fc6e6f8d91
commit 6aaee513dd
2 changed files with 6 additions and 3 deletions

View File

@@ -49,7 +49,10 @@ void compare_mem_rsv(const void *fdt1, const void *fdt2)
if ((addr1 != addr2) || (size1 != size2))
FAIL("Mismatch in reserve entry %d: "
"(0x%llx, 0x%llx) != (0x%llx, 0x%llx)", i,
addr1, size1, addr2, size2);
(unsigned long long)addr1,
(unsigned long long)size1,
(unsigned long long)addr2,
(unsigned long long)size2);
}
}