summaryrefslogtreecommitdiff
path: root/lib_generic
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-07-11 01:16:00 +0200
committerWolfgang Denk <wd@denx.de>2008-07-11 01:16:00 +0200
commit9b55a2536919f4de1bb1044e6eb8262c2f53bc96 (patch)
tree56a8a946f45094770f1f4b3e10b2344191c6c40c /lib_generic
parent4109df6f75fc00ab7da56d286ba50149a0d16a69 (diff)
downloadu-boot-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.gz
u-boot-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.bz2
u-boot-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.zip
Fix some more print() format errors.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'lib_generic')
-rw-r--r--lib_generic/lmb.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/lib_generic/lmb.c b/lib_generic/lmb.c
index 6b46fa8868..1c6cf7ce00 100644
--- a/lib_generic/lmb.c
+++ b/lib_generic/lmb.c
@@ -25,19 +25,21 @@ void lmb_dump_all(struct lmb *lmb)
debug(" memory.size = 0x%llx\n",
(unsigned long long)lmb->memory.size);
for (i=0; i < lmb->memory.cnt ;i++) {
- debug(" memory.reg[0x%x].base = 0x%llx\n", i,
- lmb->memory.region[i].base);
+ debug(" memory.reg[0x%lx].base = 0x%llx\n", i,
+ (long long unsigned)lmb->memory.region[i].base);
debug(" .size = 0x%llx\n",
- lmb->memory.region[i].size);
+ (long long unsigned)lmb->memory.region[i].size);
}
- debug("\n reserved.cnt = 0x%lx\n", lmb->reserved.cnt);
- debug(" reserved.size = 0x%llx\n", lmb->reserved.size);
+ debug("\n reserved.cnt = 0x%lx\n",
+ lmb->reserved.cnt);
+ debug(" reserved.size = 0x%llx\n",
+ (long long unsigned)lmb->reserved.size);
for (i=0; i < lmb->reserved.cnt ;i++) {
- debug(" reserved.reg[0x%x].base = 0x%llx\n", i,
- lmb->reserved.region[i].base);
+ debug(" reserved.reg[0x%lx].base = 0x%llx\n", i,
+ (long long unsigned)lmb->reserved.region[i].base);
debug(" .size = 0x%llx\n",
- lmb->reserved.region[i].size);
+ (long long unsigned)lmb->reserved.region[i].size);
}
#endif /* DEBUG */
}
@@ -266,7 +268,7 @@ phys_addr_t lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_
if (alloc == 0)
printf("ERROR: Failed to allocate 0x%lx bytes below 0x%lx.\n",
- size, max_addr);
+ (ulong)size, (ulong)max_addr);
return alloc;
}