mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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: 55e1278d5e
("dtoc: Allow inserting a list of nodes into another")
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
2b28c3b871
commit
b1839fcf75
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ class Node:
|
||||||
for node in parent.subnodes.__reversed__():
|
for node in parent.subnodes.__reversed__():
|
||||||
dst = self.copy_node(node)
|
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)
|
self.merge_props(parent, False)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue