summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJan Remmet <j.remmet@phytec.de>2015-11-20 10:03:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-23 07:52:38 +0100
commit2936579c604b432f1a1f99690944c7d74af916d3 (patch)
tree4246e29fedcaaf1adccd73cb4a078fdab7acaddd /common
parent39c858ede8fd3e15c15594699cf25cff2c1da3a2 (diff)
downloadbarebox-2936579c604b432f1a1f99690944c7d74af916d3.tar.gz
barebox-2936579c604b432f1a1f99690944c7d74af916d3.tar.xz
state: make type check error verbose
Wrong type let state probe fail with ENOENT. Signed-off-by: Jan Remmet <j.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/state.c b/common/state.c
index 117a686759..a161b94f3a 100644
--- a/common/state.c
+++ b/common/state.c
@@ -716,6 +716,8 @@ static int state_convert_node_variable(struct state *state,
vtype = state_find_type_by_name(type_name);
if (!vtype) {
+ dev_err(&state->dev, "unkown type: %s in %s\n", type_name,
+ node->full_name);
ret = -ENOENT;
goto out_free;
}