From: Jan Remmet <j.remmet@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH] state: make type check error verbose
Date: Fri, 20 Nov 2015 10:03:18 +0100 [thread overview]
Message-ID: <1448010198-23247-1-git-send-email-j.remmet@phytec.de> (raw)
Wrong type let state probe fail with ENOENT.
Signed-off-by: Jan Remmet <j.remmet@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-11-20 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 9:03 Jan Remmet [this message]
2015-11-23 6:52 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448010198-23247-1-git-send-email-j.remmet@phytec.de \
--to=j.remmet@phytec.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox