mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] state: provide an error message when an error occurs
@ 2017-08-16 12:27 Juergen Borleis
  2017-08-16 12:27 ` [PATCH 2/3] state command: extend help part I Juergen Borleis
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Juergen Borleis @ 2017-08-16 12:27 UTC (permalink / raw)
  To: barebox

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>
---
 common/state/state.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/state/state.c b/common/state/state.c
index 121ba0c6d..fc822b21b 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;
 	}
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-06 12:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 12:27 [PATCH 1/3] state: provide an error message when an error occurs Juergen Borleis
2017-08-16 12:27 ` [PATCH 2/3] state command: extend help part I Juergen Borleis
2017-08-16 12:27 ` [PATCH 3/3] state command: extend help part II Juergen Borleis
2017-08-17  8:05 ` [PATCH 1/3] state: provide an error message when an error occurs Uwe Kleine-König
2017-08-17  8:16   ` Juergen Borleis
2017-09-06 12:18 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox