summaryrefslogtreecommitdiff
path: root/drivers/dfu/dfu.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2017-07-19 16:39:23 +0200
committerMarek Vasut <marex@denx.de>2017-07-28 23:34:39 +0200
commit15970d871c299c8a4218911ee68edb0495a69cd4 (patch)
treef8f31f420ca9e3f4f1ec4be3cc568303c59f833d /drivers/dfu/dfu.c
parent4de512018ba7d57f1672be21c7459281f7c97514 (diff)
downloadu-boot-15970d871c299c8a4218911ee68edb0495a69cd4.tar.gz
u-boot-15970d871c299c8a4218911ee68edb0495a69cd4.tar.bz2
u-boot-15970d871c299c8a4218911ee68edb0495a69cd4.zip
dfu: remove limitation on partition size
Change long (32 bits on arm) to u64 (same type than offset) for size and read offset r_left So partition and device used for DFU can be greater than 4GB Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r--drivers/dfu/dfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index c77701646b..0f1ab0d9f0 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -343,7 +343,7 @@ int dfu_read(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num)
if (ret < 0)
return ret;
- debug("%s: %s %ld [B]\n", __func__, dfu->name, dfu->r_left);
+ debug("%s: %s %lld [B]\n", __func__, dfu->name, dfu->r_left);
dfu->i_blk_seq_num = 0;
dfu->crc = 0;