Skip to content
Snippets Groups Projects
Commit cda59f3e authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Deal with unknown values for device partition properties in dump-properties.

parent ff42f561
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,8 @@ def print_info(obj, info_cls): ...@@ -19,7 +19,8 @@ def print_info(obj, info_cls):
if (info_cls == cl.device_info and info_name == "PARTITION_TYPES_EXT" if (info_cls == cl.device_info and info_name == "PARTITION_TYPES_EXT"
and isinstance(info_value, list)): and isinstance(info_value, list)):
print("%s: %s" % (info_name, [ print("%s: %s" % (info_name, [
cl.device_partition_property_ext.to_string(v) for v in info_value])) cl.device_partition_property_ext.to_string(v,
"<unknown device partition property %d>") for v in info_value]))
else: else:
print("%s: %s" % (info_name, info_value)) print("%s: %s" % (info_name, info_value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment