From 8db7a230bd144912ccc361cfb859ed28beb0817e Mon Sep 17 00:00:00 2001 From: Juergen Borleis Date: Wed, 16 Aug 2017 14:27:07 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- common/state/state.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/state') diff --git a/common/state/state.c b/common/state/state.c index 18ffbe29a4..266d211bd7 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; } -- cgit v1.2.3