summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-12-10 09:05:49 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-12-10 09:05:49 +0000
commit0e6eb45baedd15cc65beb454ec00cefb5fb7962d (patch)
treed91208ccc16c1875dad8797e08c6e4459113e09a
parent01a43396075f47dffb2d6fffc9a2d3bb713a7f8d (diff)
Fix UUID-32 to string translation
-rw-r--r--src/sdp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sdp.c b/src/sdp.c
index 7c3bd7d7..f138f1b3 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -181,10 +181,11 @@ static int uuid2str(struct tupla *message, const uuid_t *uuid, char *str, size_t
snprintf(str, n, str2);
break;
case SDP_UUID32:
- snprintf(str, n, "Error: This is uuid32");
- return -3;
+ str2 = string_lookup(message, uuid->value.uuid32);
+ snprintf(str, n, str2);
+ break;
case SDP_UUID128:
- snprintf(str, n, "Error: This is uuid128");
+ snprintf(str, n, "Error: This is UUID-128");
return -4;
default:
snprintf(str, n, "Type of UUID (%x) unknown.", uuid->type);