Skip to content

Commit

Permalink
add message to assert
Browse files Browse the repository at this point in the history
  • Loading branch information
algrant-arm committed Jan 16, 2025
1 parent 0936959 commit 470efba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coresight-tools/cs_topology_sysfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def device_tree_node_reg(dtn, reg_name="reg"):

def device_tree_node_property_length(dtn, prop):
prop = "#" + prop + "-cells"
assert dtn.startswith("/proc/device-tree/")
assert dtn.startswith("/proc/device-tree/"), "unexpected device tree node: %s" % dtn
while len(dtn) > 18 and not os.path.isfile(os.path.join(dtn, prop)):
dtn = os.path.dirname(dtn)
assert dtn != "/proc/device-tree"
Expand Down

0 comments on commit 470efba

Please sign in to comment.