[U-Boot] [PATCH] [v3] fix print_size printing fractional gigabyte numbers on 32-bit platforms

Timur Tabi timur at freescale.com
Mon Apr 12 18:04:57 CEST 2010


On Fri, Apr 9, 2010 at 3:10 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Timur Tabi,
>
> In message <1269990179-23666-1-git-send-email-timur at freescale.com> you 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>
>> ---
>>  lib_generic/display_options.c |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> Applied, thanks.

I don't see this patch anywhere in http://git.denx.de/?p=u-boot.git.
Are you sure you applied it?

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list