Skip to content

Commit

Permalink
scripts: check_init_priorities: add priority to the file debug print
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fabiobaltieri authored and carlescufi committed Sep 7, 2023
1 parent 111db23 commit fb003d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build/check_init_priorities.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def __init__(self, build_dir, edt_pickle_path, log):
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:
Expand Down

0 comments on commit fb003d1

Please sign in to comment.