mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
added a generic print_guid utility, and get the byte order handing
right
This commit is contained in:
parent
bac73fa972
commit
ec2c17c56f
@ -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;i<GUID_SIZE;i++)
|
||||
d_printf("%02x", guid->info[i]);
|
||||
d_printf("\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user