mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 22:14:54 +00:00
net: tftp: use correct printf codes
When printing unsigned numbers use %u. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
a7844953ac
commit
2bcc43b39b
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ static int load_block(unsigned block, uchar *dst, unsigned len)
|
||||||
|
|
||||||
tosend = min(net_boot_file_size - offset, tosend);
|
tosend = min(net_boot_file_size - offset, tosend);
|
||||||
(void)memcpy(dst, (void *)(image_save_addr + 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);
|
block, offset, len, tosend);
|
||||||
return tosend;
|
return tosend;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue