scripts: edtlib: fix werror for unknown vendor
Commit c4079e4be2
("scripts: rework edtlib warnings-turned-errors") was trying to abort
on unknown vendor prefix, but the error log is not fatal.
Fix it by using the same error handling function we use when aborting
due to deprecated property usage.
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
e9229f1f2b
commit
9e8da8953c
1 changed files with 3 additions and 3 deletions
|
@ -524,10 +524,10 @@ class EDT:
|
|||
vendor not in self._vendor_prefixes and \
|
||||
vendor not in _VENDOR_PREFIX_ALLOWED:
|
||||
if self._werror:
|
||||
log_fn = _LOG.error
|
||||
handler_fn = _err
|
||||
else:
|
||||
log_fn = _LOG.warning
|
||||
log_fn(
|
||||
handler_fn = _LOG.warning
|
||||
handler_fn(
|
||||
f"node '{node.path}' compatible '{compat}' "
|
||||
f"has unknown vendor prefix '{vendor}'")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue