scripts: check_init_priorities: add priority to the file debug print

Log the device priority on the file debug output print, this is
convenient to list out all the defined devices and their priority, even
if they don't depend on each other.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-09-06 10:39:02 +00:00 committed by Carles Cufí
commit fb003d1aa8

View file

@ -205,9 +205,9 @@ class Validator():
obj = ZephyrObjectFile(file)
if obj.defined_devices:
self._objs.append(obj)
for dev in obj.defined_devices:
for dev, prio in obj.defined_devices.items():
dev_path = self._ord2node[dev].path
self.log.debug(f"{file}: {dev_path}")
self.log.debug(f"{file}: {dev_path} {prio}")
self._dev_priorities = {}
for obj in self._objs: