[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210208165806.25466-1-info@metux.net>
Date: Mon, 8 Feb 2021 17:58:06 +0100
From: "Enrico Weigelt, metux IT consult" <info@...ux.net>
To: linux-kernel@...r.kernel.org
Cc: robh+dt@...nel.org, frowand.list@...il.com,
devicetree@...r.kernel.org
Subject: [PATCH] of: base: improve error message 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@...ux.net>
---
drivers/of/base.c | 4 ++--
1 file 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;
}
--
2.11.0
Powered by blists - more mailing lists