mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
207828e215
commit
ae1a74ebe7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue