summaryrefslogtreecommitdiff
path: root/drivers/dfu/dfu_mmc.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-07-22 14:54:04 -0600
committerTom Warren <twarren@nvidia.com>2015-07-27 15:53:52 -0700
commite621c7ab9ace9349787881dea801739860fedcd9 (patch)
tree18cd4ae177a4d3a7b1b2b87c002b208b915b594c /drivers/dfu/dfu_mmc.c
parent8b5c738b85d49bdc7c48e5f787938fc40320bb27 (diff)
downloadu-boot-imx-e621c7ab9ace9349787881dea801739860fedcd9.zip
u-boot-imx-e621c7ab9ace9349787881dea801739860fedcd9.tar.gz
u-boot-imx-e621c7ab9ace9349787881dea801739860fedcd9.tar.bz2
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>
Diffstat (limited to 'drivers/dfu/dfu_mmc.c')
-rw-r--r--drivers/dfu/dfu_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c
index fd865e1..2a780f7 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -156,7 +156,7 @@ static int mmc_file_op(enum dfu_op op, struct dfu_entity *dfu,
dfu->data.mmc.dev, dfu->data.mmc.part);
if (op != DFU_OP_SIZE)
- sprintf(cmd_buf + strlen(cmd_buf), " 0x%x", (unsigned int)buf);
+ sprintf(cmd_buf + strlen(cmd_buf), " %p", buf);
sprintf(cmd_buf + strlen(cmd_buf), " %s", dfu->name);