[PATCH] state: make type check error verbose
Jan Remmet
j.remmet at phytec.de
Fri Nov 20 01:03:18 PST 2015
Wrong type let state probe fail with ENOENT.
Signed-off-by: Jan Remmet <j.remmet at phytec.de>
---
common/state.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/state.c b/common/state.c
index 117a686..a161b94 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;
}
--
1.9.1
More information about the barebox
mailing list