diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2018-12-18 14:57:45 +0100 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-01-07 12:26:50 +0100 |
commit | 13fe6c4bb08209f43616b9233b742335254f3edd (patch) | |
tree | 0f9a8b8e2096aa49ec8499a39856b74852b471ef | |
parent | 5b6b6daa2dece53ed2b789758365323015e2adca (diff) | |
download | dt-utils-13fe6c4bb08209f43616b9233b742335254f3edd.tar.gz dt-utils-13fe6c4bb08209f43616b9233b742335254f3edd.tar.xz |
state: provide an error message when an error occurs
This ports the following barebox commit:
| commit 8db7a230bd144912ccc361cfb859ed28beb0817e
| Author: Juergen Borleis <jbe@pengutronix.de>
| Date: Wed Aug 16 14:27:07 2017 +0200
|
| state: provide an error message when an error occurs
|
| A simple typo makes the state framework fail, but without an error
| message the developer is lost in the dark.
|
| Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | src/barebox-state/state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/barebox-state/state.c b/src/barebox-state/state.c index 7ac4b53..d557733 100644 --- a/src/barebox-state/state.c +++ b/src/barebox-state/state.c @@ -239,6 +239,7 @@ static int state_convert_node_variable(struct state *state, vtype = state_find_type_by_name(type_name); if (!vtype) { + dev_dbg(&state->dev, "Error: invalid variable type '%s'\n", type_name); ret = -ENOENT; goto out_free; } |