From 65d1a12cfff5d53e535134dbf03eedcc02ffb589 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 15 Feb 2006 08:09:39 +0000 Subject: Improve display of UUID-128 strings --- tools/sdptool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/sdptool.c b/tools/sdptool.c index fb1a0fbf..efe59e02 100644 --- a/tools/sdptool.c +++ b/tools/sdptool.c @@ -989,7 +989,10 @@ static void print_service_class(void *value, void *userData) sdp_uuid2strn(uuid, UUID_str, MAX_LEN_UUID_STR); sdp_svclass_uuid2strn(uuid, ServiceClassUUID_str, MAX_LEN_SERVICECLASS_UUID_STR); - printf(" \"%s\" (0x%s)\n", ServiceClassUUID_str, UUID_str); + if (uuid->type != SDP_UUID128) + printf(" \"%s\" (0x%s)\n", ServiceClassUUID_str, UUID_str); + else + printf(" UUID 128: %s\n", UUID_str); } static void print_service_desc(void *value, void *user) -- cgit