From: Heinrich Schuchardt Date: Sat, 22 Feb 2020 07:43:40 +0000 (+0100) Subject: net: tftp: use correct printf codes X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2bcc43b39b95447e8e137df78a1d39ede764caca;p=u-boot.git net: tftp: use correct printf codes When printing unsigned numbers use %u. Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger --- diff --git a/net/tftp.c b/net/tftp.c index 02401898c5..585eb6ef0c 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -223,7 +223,7 @@ static int load_block(unsigned block, uchar *dst, unsigned len) tosend = min(net_boot_file_size - offset, tosend); (void)memcpy(dst, (void *)(image_save_addr + offset), tosend); - debug("%s: block=%d, offset=%ld, len=%d, tosend=%ld\n", __func__, + debug("%s: block=%u, offset=%lu, len=%u, tosend=%lu\n", __func__, block, offset, len, tosend); return tosend; }