Skip to content

Commit

Permalink
env: Add more context to error message
Browse files Browse the repository at this point in the history
When setenv complains that it can't set a device parameter, then print
which parameter it tried to set.

Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
saschahauer committed Feb 8, 2018
1 parent 56b2d8e commit 5316da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5316da0

Please sign in to comment.