A simple
xl tmem-shared-auth -u
00000000-0000-000A-0000-
000000000001 -A 0 0
resulted in uuid_low = 1 (correct) and uuid_high = 0 (umm?).
The issue was that for hex values above 'A' (or 'a') we forgot
to add 10.
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
else if ( *p >= '0' && *p <= '9' )
digit = *p - '0';
else if ( *p >= 'A' && *p <= 'F' )
- digit = *p - 'A';
+ digit = *p - 'A' + 10;
else if ( *p >= 'a' && *p <= 'f' )
- digit = *p - 'a';
+ digit = *p - 'a' + 10;
else
return -1;
*x = (*x << 4) | digit;