commit | 508a4e7ad18c8d5f4e9b91e3eae7aa6c5ab6484e | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@freescale.com> | Tue Apr 13 13:16:02 2010 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Wed May 05 22:17:07 2010 +0200 |
tree | 75bda2e7098b5180c9b11470701269fa37722bef | |
parent | d689345a77b5f4f7cf9bcb22542c13c6cfebb47e [diff] |
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>