]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dfu: fix 64-bit compile warnings
authorStephen Warren <swarren@nvidia.com>
Wed, 22 Jul 2015 20:54:04 +0000 (14:54 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:46 +0000 (13:50 +0200)
commitcc3b91dd4ba14d73cb334c179206380b33e17f72
tree03a454f8979d3bd456df02a147bd98dd19531569
parent3186d795656ac7141313533ddae935848b7dafb2
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