From patchwork Wed Jan 1 22:15:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 239048 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Wed, 1 Jan 2020 23:15:48 +0100 Subject: [PATCH 1/1] net: tftp: use correct printf codes Message-ID: <20200101221548.31899-1-xypron.glpk@gmx.de> When printing unsigned numbers use %u. Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger --- net/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.24.1 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; }