diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-03-13 19:48:08 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-03-13 19:48:08 +0000 |
commit | a3938593c99180585f3ce48b7717b11188d0c813 (patch) | |
tree | 0759c8d375257364d10303c8014767fa799eae1f /hcid | |
parent | 5a948e71ec915d6edff97ecc6451351522129eaa (diff) |
Fix UUID list and class display
Diffstat (limited to 'hcid')
-rwxr-xr-x | hcid/list-devices | 12 |
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 |