aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2021-11-21 16:57:51 +0100
committerJérôme Forissier <jerome@forissier.org>2021-11-23 18:04:18 +0100
commitb17cf5c874fff6434261c9c3e1a26c6b009395ef (patch)
tree572a4a7827833d596224cec5d4f87ae4e923deea
parent33b9b4b96d1b821b1f54d02607ba7eadb01e0b2a (diff)
core: dt_driver: debug trace if property not found
Adds a debug level trace message in dt_driver_device_from_node_idx_prop() when unexpectedly not finding provider expected property in target node. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r--core/kernel/dt_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/kernel/dt_driver.c b/core/kernel/dt_driver.c
index 868afc60..453f189b 100644
--- a/core/kernel/dt_driver.c
+++ b/core/kernel/dt_driver.c
@@ -245,6 +245,8 @@ void *dt_driver_device_from_node_idx_prop(const char *prop_name,
prop = fdt_getprop(fdt, nodeoffset, prop_name, &len);
if (!prop) {
+ DMSG("Property %s missing in node %s", prop_name,
+ fdt_get_name(fdt, nodeoffset, NULL));
*res = TEE_ERROR_GENERIC;
return NULL;
}