summaryrefslogtreecommitdiffstats
path: root/common/state/state.c
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-08-15 15:46:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-06 14:02:03 +0200
commitb6a35329fe07bc4e4d34506d541853c076692140 (patch)
tree46db43662b9dd83286e3a8f0e887c60d82e7e947 /common/state/state.c
parent8322dbbbaeccf9a823b20564329dfd3d40908faa (diff)
downloadbarebox-b6a35329fe07bc4e4d34506d541853c076692140.tar.gz
barebox-b6a35329fe07bc4e4d34506d541853c076692140.tar.xz
state: add debugging help
While working on the state documentation it turns out to be helpful to have more debug messages while a developer implements a 'state' variable set and tries to configure it correctly. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.c')
-rw-r--r--common/state/state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/state/state.c b/common/state/state.c
index 121ba0c6d3..18ffbe29a4 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -608,11 +608,13 @@ struct state *state_new_from_node(struct device_node *node, char *path,
ret = of_property_read_string(node, "backend-type", &backend_type);
if (ret) {
+ dev_dbg(&state->dev, "Missing 'backend-type' property\n");
goto out_release_state;
}
ret = of_property_read_u32(node, "backend-stridesize", &stridesize);
if (ret) {
+ dev_dbg(&state->dev, "'backend-stridesize' property undefined, trying to continue without\n");
stridesize = 0;
}