summaryrefslogtreecommitdiff
path: root/tools/dtoc
diff options
context:
space:
mode:
authorManorit Chawdhry <[email protected]>2023-12-29 16:16:25 +0530
committerTom Rini <[email protected]>2024-01-04 16:48:00 -0500
commitb1839fcf758a8d36ba8b082bb5a71f0aec6bbb32 (patch)
tree311ba7ebcee56d804b4dec1f4e2d22261937aee6 /tools/dtoc
parent2b28c3b871cd5d55b19f0a86cef970139f8ab952 (diff)
dtoc: Change dst to self in debug message
Fix the error message to not use dst and use self as it is copying the properties to self. While using templating if there are no subnodes defined, we end up in this situation where "dst" isn't defined and it tries to print the error message and fails. 'UnboundLocalError: local variable 'dst' referenced before assignment' Fixes: 55e1278d5eca ("dtoc: Allow inserting a list of nodes into another") Signed-off-by: Manorit Chawdhry <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/dtoc')
-rw-r--r--tools/dtoc/fdt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 5963925146a..991a36b9879 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -782,7 +782,7 @@ class Node:
for node in parent.subnodes.__reversed__():
dst = self.copy_node(node)
- tout.debug(f'merge props from {parent.path} to {dst.path}')
+ tout.debug(f'merge props from {parent.path} to {self.path}')
self.merge_props(parent, False)