Skip to content
Permalink
Browse files

dts/gen_defines.py: Use err() instead of _err()

_err comes from edtlib and we should be using err() inside of
gen_defines.py.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Aug 8, 2019
1 parent e98ea27 commit e328e56b30ba97708edbd5996259e53220570563
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/dts/gen_defines.py
@@ -188,7 +188,7 @@ def write_bus(dev):
return return


if dev.parent.label is None: if dev.parent.label is None:
_err("missing 'label' property on {!r}".format(dev.parent)) err("missing 'label' property on {!r}".format(dev.parent))


# #define DT_<DEV-IDENT>_BUS_NAME <BUS-LABEL> # #define DT_<DEV-IDENT>_BUS_NAME <BUS-LABEL>
out_dev_s(dev, "BUS_NAME", str2ident(dev.parent.label)) out_dev_s(dev, "BUS_NAME", str2ident(dev.parent.label))

0 comments on commit e328e56

Please sign in to comment.
You can’t perform that action at this time.