diff mbox series

[v2,3/3] dfu: Provide more verbose error message

Message ID 20180713133547.21094-3-semen.protsenko@linaro.org
State Accepted
Commit 28a5c88043c80a38040abde957fbe1755b796912
Headers show
Series [v2,1/3] dfu: Fix data abort in dfu_free_entities() | expand

Commit Message

Sam Protsenko July 13, 2018, 1:35 p.m. UTC
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>
---
Changes in v2:
  - None

 drivers/dfu/dfu.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 5b9abd685d..318949529b 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -71,6 +71,7 @@  int dfu_init_env_entities(char *interface, char *devstr)
 	ret = dfu_config_entities(env_bkp, interface, devstr);
 	if (ret) {
 		pr_err("DFU entities configuration failed!\n");
+		pr_err("(partition table does not match dfu_alt_info?)\n");
 		goto done;
 	}