diff options
author | Stephen Warren <swarren@nvidia.com> | 2015-07-22 14:54:04 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2015-07-27 15:53:52 -0700 |
commit | e621c7ab9ace9349787881dea801739860fedcd9 (patch) | |
tree | 18cd4ae177a4d3a7b1b2b87c002b208b915b594c /drivers/dfu/dfu.c | |
parent | 8b5c738b85d49bdc7c48e5f787938fc40320bb27 (diff) | |
download | u-boot-e621c7ab9ace9349787881dea801739860fedcd9.tar.gz u-boot-e621c7ab9ace9349787881dea801739860fedcd9.tar.bz2 u-boot-e621c7ab9ace9349787881dea801739860fedcd9.zip |
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.c')
-rw-r--r-- | drivers/dfu/dfu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 0560afa9ff..675162d927 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -198,9 +198,9 @@ int dfu_write(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num) { int ret; - debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx bufoffset: 0x%x\n", + debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx bufoffset: 0x%lx\n", __func__, dfu->name, buf, size, blk_seq_num, dfu->offset, - dfu->i_buf - dfu->i_buf_start); + (unsigned long)(dfu->i_buf - dfu->i_buf_start)); if (!dfu->inited) { /* initial state */ |