]> git.dujemihanovic.xyz Git - u-boot.git/commit
dtoc: Change dst to self in debug message
authorManorit Chawdhry <m-chawdhry@ti.com>
Fri, 29 Dec 2023 10:46:25 +0000 (16:16 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jan 2024 21:48:00 +0000 (16:48 -0500)
commitb1839fcf758a8d36ba8b082bb5a71f0aec6bbb32
tree311ba7ebcee56d804b4dec1f4e2d22261937aee6
parent2b28c3b871cd5d55b19f0a86cef970139f8ab952
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 <m-chawdhry@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt.py