Skip to contentSkip to conversation

state: make type check error verbose

PATCH Applied Jan Remmet 2 participants 2 messages Nov 20, 2015 – Nov 23, 2015

lore
Share & tools
lore

Jan Remmet

author
#0 lore raw

PATCH 1/1 state: make type check error verbose

Wrong type let state probe fail with ENOENT.

---
 common/state.c | 2 ++
 1 file changed, 2 insertions(+)
common/state.c +2 -0
index 117a686..a161b94 100644
@@ -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;
 	}
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 6 lines · Jan Remmet

Wrong type let state probe fail with ENOENT.

---
 common/state.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks

Sascha

Quoted 23 lines
common/state.c +2 -0
index 117a686..a161b94 100644
@@ -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;
 	}
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox