From dfba6f53ec48e2d5c1e69b1f584b4f9dfeff4401 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 22 Feb 2017 12:04:23 +0100 Subject: [PATCH] src/gattlib: Fixed 'gattlib_uuid_to_string()' to return the entire UUID --- src/gattlib_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gattlib_connect.c b/src/gattlib_connect.c index 6e7ef56..7a9f0be 100644 --- a/src/gattlib_connect.c +++ b/src/gattlib_connect.c @@ -439,7 +439,7 @@ int gattlib_uuid_to_string(const uuid_t *uuid, char *str, size_t n) { memcpy(&data4, &uuid->value.uuid128.data[10], 4); memcpy(&data5, &uuid->value.uuid128.data[14], 2); - snprintf(str, n, "0x%.8x-%.4x-%.4x-%.4x-%.8x%.4x", + snprintf(str, n, "%.8x-%.4x-%.4x-%.4x-%.8x%.4x", ntohl(data0), ntohs(data1), ntohs(data2), ntohs(data3), ntohl(data4), ntohs(data5)); } else {