From a3938593c99180585f3ce48b7717b11188d0c813 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 13 Mar 2008 19:48:08 +0000 Subject: Fix UUID list and class display --- hcid/list-devices | 12 +++++++----- 1 file 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 -- cgit