of: base: improve error msg in of_phandle_iterator_next()
PATCH 1/1 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 <[email protected]>
--- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/of/base.c +2 -2
@@ -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; }
Signature · 1 line
2.11.0
Quoted 7 lines · metux IT consult
Also print out the phandle ID on error message, as a debug aid.
Signed-off-by Enrico Weigelt, metux IT consult <[email protected]>--- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks!