]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: Fix the displayed value of bytes transferred
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Mon, 14 Aug 2023 04:53:47 +0000 (10:23 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 22 Aug 2023 19:17:53 +0000 (15:17 -0400)
commit8f911a7be6bc631d2f4185f7d71025bf97f260e9
treec1fd8a6a66dcf3997097ef65f365c45a8cf13251
parent4f543e82b9831333bc0effe9540d8e6a9dde3cb5
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: 1411157d8578 ("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>
net/net.c