* [PATCH] env: Add more context to error message
@ 2018-02-08 7:58 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2018-02-08 7:58 UTC (permalink / raw)
To: Barebox List
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>
---
common/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/env.c b/common/env.c
index 80d3f7ab50..323a82223e 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;
}
--
2.15.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-08 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 7:58 [PATCH] env: Add more context to error message Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox