[1/1] net: tftp: use correct printf codes
diff mbox series

Message ID 20200101221548.31899-1-xypron.glpk@gmx.de
State New
Delegated to: Joe Hershberger
Headers show
Series
  • [1/1] net: tftp: use correct printf codes
Related show

Commit Message

Heinrich Schuchardt Jan. 1, 2020, 10:15 p.m. UTC
When printing unsigned numbers use %u.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 net/tftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.24.1

Comments

Joe Hershberger Jan. 5, 2020, 10:45 p.m. UTC | #1
On Wed, Jan 1, 2020 at 4:16 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> When printing unsigned numbers use %u.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Patch
diff mbox series

diff --git a/net/tftp.c b/net/tftp.c
index 1e3c18ae69..6b8369242c 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -222,7 +222,7 @@  static int load_block(unsigned block, uchar *dst, unsigned len)

 	tosend = min(net_boot_file_size - offset, tosend);
 	(void)memcpy(dst, (void *)(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;
 }