]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: fix 64-bit compile warnings
authorStephen Warren <swarren@nvidia.com>
Wed, 22 Jul 2015 20:54:04 +0000 (14:54 -0600)
committerTom Warren <twarren@nvidia.com>
Mon, 27 Jul 2015 22:53:52 +0000 (15:53 -0700)
commite621c7ab9ace9349787881dea801739860fedcd9
tree18cd4ae177a4d3a7b1b2b87c002b208b915b594c
parent8b5c738b85d49bdc7c48e5f787938fc40320bb27
dfu: fix 64-bit compile warnings

Use %p to print pointers.

The max value of (i_buf - i_buf_start) should be dfu_buf_size, which is
an unsigned long, so cast the pointer difference to that type to print.

Change-Id: Iee242df9f8eb091aecfe0cea4c282b28b547acfe
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/dfu/dfu.c
drivers/dfu/dfu_mmc.c