diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2021-01-14 13:11:27 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-01-15 20:26:09 +0300 |
commit | 12e17243d8a1591bba5041da6e7df7a390da94a1 (patch) | |
tree | 85ab8a1aacaea66ddacd51bd17302b18c14de3e0 /drivers/of/base.c | |
parent | 4b52be0ce6ad1be3c1fc380d2386252d5ee6218b (diff) | |
download | linux-12e17243d8a1591bba5041da6e7df7a390da94a1.tar.xz |
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; } |