Skip to content
Snippets Groups Projects
Commit ae1a74eb authored by Valentin Longchamp's avatar Valentin Longchamp Committed by Tom Rini
Browse files

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: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 207828e2
No related branches found
No related tags found
No related merge requests found
...@@ -664,7 +664,7 @@ int initr_mem(void) ...@@ -664,7 +664,7 @@ int initr_mem(void)
/* Also take the logbuffer into account (pram is in kB) */ /* Also take the logbuffer into account (pram is in kB) */
pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024; pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
# endif # endif
sprintf(memsz, "%ldk", (gd->ram_size / 1024) - pram); sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram));
setenv("mem", memsz); setenv("mem", memsz);
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment