diff options
author | Timur Tabi <timur@freescale.com> | 2010-04-13 13:16:02 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-05-05 22:17:07 +0200 |
commit | 52dbac69c27dee67a4c051b1055d93b0ac4e2062 (patch) | |
tree | 75bda2e7098b5180c9b11470701269fa37722bef /include | |
parent | b88c5988db176a0f9de5598d5167ee2498637d40 (diff) | |
download | u-boot-imx-52dbac69c27dee67a4c051b1055d93b0ac4e2062.zip u-boot-imx-52dbac69c27dee67a4c051b1055d93b0ac4e2062.tar.gz u-boot-imx-52dbac69c27dee67a4c051b1055d93b0ac4e2062.tar.bz2 |
fix print_size printing fractional gigabyte numbers on 32-bit platforms
In print_size(), the math that calculates the fractional remainder of a number
used the same integer size as a physical address. However, the "10 *" factor
of the algorithm means that a large number (e.g. 1.5GB) can overflow the
integer if we're running on a 32-bit system. Therefore, we need to
disassociate this function from the size of a physical address.
Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions