From e6fa31d6cb8056b6a0e60e4068e9828599a5689a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 19 Aug 2002 16:55:29 +0000 Subject: added a generic print_guid utility, and get the byte order handing right (This used to be commit ec2c17c56f06e122868b2a55bc7c292106ad3911) --- source3/lib/util_sid.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source3') diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index ad09f91234..8bb06e8866 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -525,3 +525,18 @@ char *sid_binstring(DOM_SID *sid) return s; } + +/* + print a GUID structure for debugging +*/ +void print_guid(GUID *guid) +{ + int i; + + d_printf("%08x-%04x-%04x", + IVAL(guid->info, 0), SVAL(guid->info, 4), SVAL(guid->info, 6)); + d_printf("-%02x%02x-", guid->info[8], guid->info[9]); + for (i=10;iinfo[i]); + d_printf("\n"); +} -- cgit