]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dfu: Provide more verbose error message
authorSam Protsenko <semen.protsenko@linaro.org>
Fri, 13 Jul 2018 13:35:47 +0000 (16:35 +0300)
committerMarek Vasut <marex@denx.de>
Wed, 8 Aug 2018 20:22:08 +0000 (22:22 +0200)
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>
drivers/dfu/dfu.c

index 5b9abd685d7febee498f466de7bd9be9765a5e8a..318949529b302db73867f4bd311aa6203539fe7b 100644 (file)
@@ -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;
        }