[PATCH v2 1/1] net: tftp: use correct printf codes
Heinrich Schuchardt
xypron.glpk at gmx.de
Sat Feb 22 08:43:40 CET 2020
When printing unsigned numbers use %u.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
---
v2:
rebased
---
net/tftp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.24.1
More information about the U-Boot
mailing list