Commit ae1a74ebe7b4627205703f19e60c1c2c2fa06c73
Committed by
Tom Rini
1 parent
207828e215
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
common/board_r.c
... | ... | @@ -664,7 +664,7 @@ |
664 | 664 | /* Also take the logbuffer into account (pram is in kB) */ |
665 | 665 | pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024; |
666 | 666 | # endif |
667 | - sprintf(memsz, "%ldk", (gd->ram_size / 1024) - pram); | |
667 | + sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram)); | |
668 | 668 | setenv("mem", memsz); |
669 | 669 | |
670 | 670 | return 0; |