summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-08-16 14:27:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-06 14:02:14 +0200
commit8db7a230bd144912ccc361cfb859ed28beb0817e (patch)
treec2c3c8b9bed6200fb0e75c998ff2900ebc42ad53 /common/state
parentc5bb5ed6fb7039e90c9580df24a5692faeb6e2b4 (diff)
downloadbarebox-8db7a230bd144912ccc361cfb859ed28beb0817e.tar.gz
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>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/state/state.c b/common/state/state.c
index 18ffbe2..266d211 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -240,6 +240,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;
}