Skip to content
Snippets Groups Projects
Commit 52dbac69 authored by Timur Tabi's avatar Timur Tabi Committed by Wolfgang Denk
Browse files

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: default avatarTimur Tabi <timur@freescale.com>
parent b88c5988
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment