Skip to contentSkip to conversation

of: base: improve error message in of_phandle_iterator_next()

PATCH In review Enrico Weigelt, metux IT consult 2 participants 3 messages Feb 8, 2021 – Feb 12, 2021 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: base: improve error message in of_phandle_iterator_next()

Also print out the phandle ID on error message, as a debug aid.

---
 drivers/of/base.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/of/base.c +2 -2
index 161a23631472..8a348f0d3c5e 100644
@@ -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
#1 lore raw
Quoted 2 lines · metux IT consult

Also print out the phandle ID on error message, as a debug aid.

I already have this patch applied in my tree. Why do you keep sending it?

Rob

#2 lore raw
Quoted 6 lines · Rob Herring
Quoted 2 lines · metux IT consult

Also print out the phandle ID on error message, as a debug aid.

I already have this patch applied in my tree. Why do you keep sending it?

Sorry, didn't know that when sending it the 2nd time, missed your last mail in the mail flood :o

Seems my mail sorting rules are still quite imperfect. I suspect I'm not the only one with those problems - how do you folks handle that ?

--mtx

Signature · 9 lines
-- 
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
[email protected] -- +49-151-27565287