]> git.sur5r.net Git - u-boot/commit
dfu: tftp: Fix arm64 build warnings
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 16 Feb 2018 15:41:19 +0000 (16:41 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 21 Feb 2018 19:28:15 +0000 (20:28 +0100)
commit36dd7e7e2563772293d3ecce2b108b9c7300f588
tree3d0f5b9254b416453c4df8d8f187ec84941b9a04
parentbb4059a53bc13615f12b5e21252872bf7e02dce4
dfu: tftp: Fix arm64 build warnings

Fix two build warnings when building for arm64:

drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’:
drivers/dfu/dfu_tftp.c:59:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  ret = dfu_write_from_mem_addr(dfu, (void *)addr, len);
                                     ^
and

drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’:
drivers/dfu/dfu_tftp.c:41:8: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__kernel_size_t {aka long unsigned int}’ [-Wformat=]
  debug("%s: image name: %s strlen: %u\n", __func__, sb, strlen(sb));
        ^

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Lukasz Majewski <lukma@denx.de>
drivers/dfu/dfu_tftp.c