]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: tftp: Fix TFTP Transfer Size data type
authorYuya Hamamachi <yuya.hamamachi.sx@renesas.com>
Thu, 29 Jan 2026 22:30:19 +0000 (23:30 +0100)
committerJerome Forissier <jerome.forissier@arm.com>
Fri, 6 Feb 2026 15:37:31 +0000 (16:37 +0100)
commita28db0f1ccd6d7f88e9715486376bc039975f72c
tree67f66d0a7a12551db45d8c2572da010a1d7e49d4
parent86f90e2a5fb0283552f610e293fcee2a29724094
net: tftp: Fix TFTP Transfer Size data type

The TFTP transfer size is unsigned integer, update the data type
and print formating string accordingly to prevent an overflow in
case the file size is longer than 2 GiB.

TFTP transfer of a 3 GiB file, before (wrong) and after (right):
Loading: #################################################  16 EiB
Loading: ##################################################  3 GiB

Signed-off-by: Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
net/tftp.c