summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-02-08 08:57:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-08 08:58:27 +0100
commit5316da0098c913b1e548801a57b7d5d9fd5a4d6d (patch)
tree4d1fc412a65725def193fa601b936965a125d21d /common/env.c
parent56b2d8e5011145c5f7547ec171e70ac7436bae5d (diff)
downloadbarebox-5316da0098c913b1e548801a57b7d5d9fd5a4d6d.tar.gz
env: Add more context to error message
When setenv complains that it can't set a device parameter, then print which parameter it tried to set. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/env.c')
-rw-r--r--common/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env.c b/common/env.c
index 80d3f7a..323a822 100644
--- a/common/env.c
+++ b/common/env.c
@@ -266,7 +266,7 @@ int setenv(const char *_name, const char *value)
if (strchr(name, '.')) {
ret = dev_setenv(name, value);
if (ret)
- eprintf("Cannot set parameter: %s\n", strerror(-ret));
+ eprintf("Cannot set parameter %s: %s\n", name, strerror(-ret));
goto out;
}