28a5c880 | 13-Jul-2018 |
Sam Protsenko <semen.protsenko@linaro.org> |
dfu: Provide more verbose error message
It might be useful for user to see some human-readable root cause message in addition to "configuration failed" message, so that the issue can be fixed quickl
dfu: Provide more verbose error message
It might be useful for user to see some human-readable root cause message in addition to "configuration failed" message, so that the issue can be fixed quickly.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
show more ...
|
87a8ca98 | 13-Jul-2018 |
Sam Protsenko <semen.protsenko@linaro.org> |
dfu: Fix memory leak in dfu_init_env_entities()
In case of error in dfu_init_env_entities(), env_bkp will leak. Fix it by providing single return path.
Signed-off-by: Sam Protsenko <semen.protsenko
dfu: Fix memory leak in dfu_init_env_entities()
In case of error in dfu_init_env_entities(), env_bkp will leak. Fix it by providing single return path.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
show more ...
|
36dd7e7e | 16-Feb-2018 |
Marek Vasut <marek.vasut@gmail.com> |
dfu: tftp: Fix arm64 build warnings
Fix two build warnings when building for arm64:
drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’: drivers/dfu/dfu_tftp.c:59:37: warning: cast to pointer from
dfu: tftp: Fix arm64 build warnings
Fix two build warnings when building for arm64:
drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’: drivers/dfu/dfu_tftp.c:59:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ret = dfu_write_from_mem_addr(dfu, (void *)addr, len); ^ and
drivers/dfu/dfu_tftp.c: In function ‘dfu_tftp_write’: drivers/dfu/dfu_tftp.c:41:8: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘__kernel_size_t {aka long unsigned int}’ [-Wformat=] debug("%s: image name: %s strlen: %u\n", __func__, sb, strlen(sb)); ^
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Lukasz Majewski <lukma@denx.de>
show more ...
|
6fa8dddd | 19-Jul-2017 |
Patrick Delaunay <patrick.delaunay@st.com> |
dfu: add common function to initiate transaction
- factorize code between read and write transaction - always use dfu_transaction_cleanup() to initialize the internal variable: easy maintenance -
dfu: add common function to initiate transaction
- factorize code between read and write transaction - always use dfu_transaction_cleanup() to initialize the internal variable: easy maintenance - replace direct access by dfu_get_buf() and dfu_get_buf_size()
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
show more ...
|