mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-28 22:13:08 +00:00
d179018e4c
Function print_size() round size to the nearst value with one decimal fraction number. But in special cases also unit order may overflow. For example value 1073689396 is printed as "1024 MiB" and value 1073741824 as "1 GiB". Fix this issue by detecting order overflow and increasing unit order. With this change also value 1073689396 is printed as "1 GiB". Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
abuf.c | ||
asn1.c | ||
cmd_ut_lib.c | ||
efi_device_path.c | ||
efi_image_region.c | ||
getopt.c | ||
hexdump.c | ||
Kconfig | ||
kconfig.c | ||
kconfig_spl.c | ||
lmb.c | ||
longjmp.c | ||
Makefile | ||
rsa.c | ||
sscanf.c | ||
string.c | ||
strlcat.c | ||
test_aes.c | ||
test_crypt.c | ||
test_errno_str.c | ||
test_print.c |