From 1c5ada33aa393b6bb193ebec186a4ec1917e49ff Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 29 Apr 2011 19:11:01 -0400
Subject: [PATCH] Friendlier dump of fission partition types.

---
 examples/dump-properties.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/examples/dump-properties.py b/examples/dump-properties.py
index d8e5636f..4b8a9be8 100644
--- a/examples/dump-properties.py
+++ b/examples/dump-properties.py
@@ -9,7 +9,11 @@ def print_info(obj, info_cls):
             except:
                 info_value = "<error>"
 
-            print("%s: %s" % (info_name, info_value))
+            if info_cls == cl.device_info and info_name == "PARTITION_TYPES_EXT":
+                print("%s: %s" % (info_name, [
+                    cl.device_partition_property_ext.to_string(v) for v in info_value]))
+            else:
+                print("%s: %s" % (info_name, info_value))
 
 for platform in cl.get_platforms():
     print(75*"=")
-- 
GitLab