]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spl: dfu: Fix printed variable name
authorMarek Vasut <marex@denx.de>
Sat, 25 May 2019 20:50:35 +0000 (22:50 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Jun 2019 10:39:50 +0000 (12:39 +0200)
The SPL DFU uses dfu_alt_info_N variable name to determine the DFU
configuration, where N is the name of the media (e.g. ram). It does
not use the plain dfu_alt_info. Print the name of the missing env
variable in case of a failure instead of printing dfu_alt_info,
which is just the name of the parameter passed to spl_dfu_cmd().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
common/spl/spl_dfu.c

index 01178f611f4bb9c73f0aa63274d9db1ebc535ce7..c0225dc4e181ce35011cd216dcec7945ff6e6f0b 100644 (file)
@@ -41,7 +41,7 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr)
        set_default_env(NULL, 0);
        str_env = env_get(dfu_alt_info);
        if (!str_env) {
-               pr_err("\"dfu_alt_info\" env variable not defined!\n");
+               pr_err("\"%s\" env variable not defined!\n", dfu_alt_info);
                return -EINVAL;
        }