summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2019-05-25 22:50:35 +0200
committerMarek Vasut <marex@denx.de>2019-06-14 12:39:50 +0200
commit634931fea542fc59cf7537b6c2c163942a6ccd15 (patch)
treebb112c3ddd9e31249dd7670293159324c2863de9 /common
parentc2ea87883ef309570c8903e6de4b8b78685d73d0 (diff)
spl: dfu: Fix printed variable name
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>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_dfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c
index 01178f611f..c0225dc4e1 100644
--- a/common/spl/spl_dfu.c
+++ b/common/spl/spl_dfu.c
@@ -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;
}