summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-13 19:48:08 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-13 19:48:08 +0000
commita3938593c99180585f3ce48b7717b11188d0c813 (patch)
tree0759c8d375257364d10303c8014767fa799eae1f
parent5a948e71ec915d6edff97ecc6451351522129eaa (diff)
Fix UUID list and class display
-rwxr-xr-xhcid/list-devices12
1 files changed, 7 insertions, 5 deletions
diff --git a/hcid/list-devices b/hcid/list-devices
index 5e27b84d..2aefbe09 100755
--- a/hcid/list-devices
+++ b/hcid/list-devices
@@ -42,11 +42,13 @@ for i in adapter_list:
properties = device.GetProperties()
for key in properties.keys():
- if (key == 'UUID'):
- list = extract_uuids(properties[key])
+ value = properties[key]
+ if (key == 'UUID' or key == 'UUIDs'):
+ list = extract_uuids(value)
print ' %s = %s' % (key, list)
- continue
-
- print ' %s = %s' % (key, properties[key])
+ elif (key == "Class"):
+ print ' %s = 0x%06x' % (key, value)
+ else:
+ print ' %s = %s' % (key, value)
print