mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 06:46:00 +00:00
net: Fix the displayed value of bytes transferred
In the case of NETLOOP_SUCCESS, the decimal value of the u32 variable
"net_boot_file_size" is printed using "%d", resulting in negative values
being reported for large file sizes. Fix this by using "%u" to print the
decimal value corresponding to the bytes transferred.
Fixes: 1411157d85
("net: cosmetic: Fixup var names related to boot file")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
4f543e82b9
commit
8f911a7be6
1 changed files with 1 additions and 1 deletions
|
@ -716,7 +716,7 @@ restart:
|
||||||
case NETLOOP_SUCCESS:
|
case NETLOOP_SUCCESS:
|
||||||
net_cleanup_loop();
|
net_cleanup_loop();
|
||||||
if (net_boot_file_size > 0) {
|
if (net_boot_file_size > 0) {
|
||||||
printf("Bytes transferred = %d (%x hex)\n",
|
printf("Bytes transferred = %u (%x hex)\n",
|
||||||
net_boot_file_size, net_boot_file_size);
|
net_boot_file_size, net_boot_file_size);
|
||||||
env_set_hex("filesize", net_boot_file_size);
|
env_set_hex("filesize", net_boot_file_size);
|
||||||
env_set_hex("fileaddr", image_load_addr);
|
env_set_hex("fileaddr", image_load_addr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue