diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2021-01-14 11:11:27 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-01-15 11:26:09 -0600 |
commit | 12e17243d8a1591bba5041da6e7df7a390da94a1 (patch) | |
tree | 85ab8a1aacaea66ddacd51bd17302b18c14de3e0 /drivers/of/base.c | |
parent | 4b52be0ce6ad1be3c1fc380d2386252d5ee6218b (diff) | |
download | lwn-12e17243d8a1591bba5041da6e7df7a390da94a1.tar.gz lwn-12e17243d8a1591bba5041da6e7df7a390da94a1.zip |
of: base: improve error msg in of_phandle_iterator_next()
Also print out the phandle ID on error message, as a debug aid.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Link: https://lore.kernel.org/r/20210114101127.16580-1-info@metux.net
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 161a23631472..8a348f0d3c5e 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1297,8 +1297,8 @@ int of_phandle_iterator_next(struct of_phandle_iterator *it) if (it->cells_name) { if (!it->node) { - pr_err("%pOF: could not find phandle\n", - it->parent); + pr_err("%pOF: could not find phandle %d\n", + it->parent, it->phandle); goto err; } |