[PATCH v7 1/9] dtoc: Change dst to self in debug message
Simon Glass
sjg at chromium.org
Sun Dec 31 13:45:12 CET 2023
On Fri, Dec 29, 2023 at 10:46 AM Manorit Chawdhry <m-chawdhry at ti.com> wrote:
>
> 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 at ti.com>
> ---
> tools/dtoc/fdt.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list