projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a784495
)
net: tftp: use correct printf codes
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 22 Feb 2020 07:43:40 +0000
(08:43 +0100)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Mon, 9 Mar 2020 23:11:25 +0000
(18:11 -0500)
When printing unsigned numbers use %u.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/tftp.c
patch
|
blob
|
history
diff --git
a/net/tftp.c
b/net/tftp.c
index 02401898c5566c089c8d35158c848c7e8e3275e3..585eb6ef0cb3a14469894d64b436f7c90c22e23c 100644
(file)
--- 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;
}