summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2014-10-03 11:16:19 +0200
committerTom Rini <trini@ti.com>2014-10-10 09:44:45 -0400
commitae1a74ebe7b4627205703f19e60c1c2c2fa06c73 (patch)
tree2966ef263fd732c59c556390a55606c70f1c78f7 /common
parent207828e215f7e8331ea3c304b922de9d155fb68e (diff)
downloadblackbird-obmc-uboot-ae1a74ebe7b4627205703f19e60c1c2c2fa06c73.tar.gz
blackbird-obmc-uboot-ae1a74ebe7b4627205703f19e60c1c2c2fa06c73.zip
common/board_r: remove warning in initr_mem for 64-bit phys_size_t
Since on powerpc phys_size_t can be unsigned long long, this printout line can result in a not nice compile warning. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index c339aad7f5..7e1a76d97f 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -664,7 +664,7 @@ int initr_mem(void)
/* Also take the logbuffer into account (pram is in kB) */
pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
# endif
- sprintf(memsz, "%ldk", (gd->ram_size / 1024) - pram);
+ sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram));
setenv("mem", memsz);
return 0;
OpenPOWER on IntegriCloud