add debug

This commit is contained in:
rfm 2024-02-07 14:11:02 +00:00
parent 848c1fa4ac
commit 936410c7e6

View file

@ -498,6 +498,7 @@ static Class cls = Nil;
for (index = 0; index < _max; index++) for (index = 0; index < _max; index++)
{ {
SQLClient *client = _items[index].c; SQLClient *client = _items[index].c;
NSThread *owner = _items[index].o;
NSUInteger rc = [client retainCount]; NSUInteger rc = [client retainCount];
NSUInteger uc = _items[index].u; NSUInteger uc = _items[index].u;
@ -511,15 +512,15 @@ static Class cls = Nil;
if (NSNotFound == uc) if (NSNotFound == uc)
{ {
tmp = [NSString stringWithFormat: @" Client '%@'" tmp = [NSString stringWithFormat: @" Client '%@'"
@" provided exclusively (retained:%"PRIuPTR, @" provided to %@ exclusively (retained:%"PRIuPTR,
[client name], rc]; [client name], owner, rc];
} }
else else
{ {
tmp = [NSString stringWithFormat: @" Client '%@'" tmp = [NSString stringWithFormat: @" Client '%@'"
@" provided %"PRIuPTR @" provided to %@ %"PRIuPTR
@" time%s (retained:%"PRIuPTR, @" time%s (retained:%"PRIuPTR,
[client name], uc, ((1 == uc) ? "" : "s"), rc]; [client name], owner, uc, ((1 == uc) ? "" : "s"), rc];
} }
#if defined(GNUSTEP) #if defined(GNUSTEP)