Index: tools/sdptool.c =================================================================== RCS file: /cvsroot/bluez/utils/tools/sdptool.c,v retrieving revision 1.55 diff -u -r1.55 sdptool.c --- tools/sdptool.c 15 Feb 2006 08:09:39 -0000 1.55 +++ tools/sdptool.c 20 Feb 2006 07:31:42 -0000 @@ -989,6 +989,7 @@ sdp_uuid2strn(uuid, UUID_str, MAX_LEN_UUID_STR); sdp_svclass_uuid2strn(uuid, ServiceClassUUID_str, MAX_LEN_SERVICECLASS_UUID_STR); + if (uuid->type != SDP_UUID128) printf(" \"%s\" (0x%s)\n", ServiceClassUUID_str, UUID_str); else @@ -3488,6 +3489,7 @@ { struct search_context context; unsigned char *uuid = NULL; + uint128_t uuid128; uint32_t class = 0; bdaddr_t bdaddr; int has_addr = 0; @@ -3532,6 +3534,9 @@ sscanf(context.svc + 2, "%X", &num); class = num; printf("Class 0x%X\n", class); + } + else if (sdp_extract_uuid_from_string(&uuid128, context.svc) == 0) { + uuid = uuid128.data; } else { /* Convert class name to an UUID */