[U-Boot] [PATCH 1/2] [v2] fix print_size printing fractional gigabyte numbers on 32-bit platforms

Timur Tabi timur at freescale.com
Mon May 3 17:42:46 CEST 2010


Wolfgang, if you have no objections, please apply this patch.

On Tue, Apr 13, 2010 at 1:16 PM, Timur Tabi <timur at freescale.com> wrote:
> 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 at freescale.com>
> ---

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list