[PATCH 2/3] tools/sdptool: Fix UUID128 format in tree output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Write UUID128 in format used in the rest of the code when
showing sdp records in tree format.

---
 tools/sdptool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/sdptool.c b/tools/sdptool.c
index a65fc95..8057551 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -445,7 +445,7 @@ static void sdp_uuid_printf(uuid_t *uuid, struct attrib_context *context, int in
 			memcpy(&data4, &uuid->value.uuid128.data[10], 4);
 			memcpy(&data5, &uuid->value.uuid128.data[14], 2);
 
-			printf("%.*sUUID128 : 0x%.8x-%.4x-%.4x-%.4x-%.8x-%.4x\n",
+			printf("%.*sUUID128 : %.8x-%.4x-%.4x-%.4x-%.8x%.4x\n",
 				indent, indent_spaces,
 				ntohl(data0), ntohs(data1), ntohs(data2),
 				ntohs(data3), ntohl(data4), ntohs(data5));
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux