mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-16 00:21:39 +00:00
add debug
This commit is contained in:
parent
848c1fa4ac
commit
936410c7e6
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue