mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
remove warning in checklocks on 64bit system.
git-svn-id: file:///svn/unbound/trunk@3523 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c585cbc2d9
commit
57ce6f11de
1 changed files with 7 additions and 4 deletions
|
|
@ -763,7 +763,8 @@ static void
|
||||||
lock_debug_info(struct checked_lock* lock)
|
lock_debug_info(struct checked_lock* lock)
|
||||||
{
|
{
|
||||||
if(!lock) return;
|
if(!lock) return;
|
||||||
log_info("+++ Lock %x, %d %d create %s %s %d", (int)lock,
|
log_info("+++ Lock %llx, %d %d create %s %s %d",
|
||||||
|
(unsigned long long)(size_t)lock,
|
||||||
lock->create_thread, lock->create_instance,
|
lock->create_thread, lock->create_instance,
|
||||||
lock->create_func, lock->create_file, lock->create_line);
|
lock->create_func, lock->create_file, lock->create_line);
|
||||||
log_info("lock type: %s",
|
log_info("lock type: %s",
|
||||||
|
|
@ -798,8 +799,9 @@ thread_debug_info(struct thr_check* thr)
|
||||||
struct checked_lock* l = NULL;
|
struct checked_lock* l = NULL;
|
||||||
if(!thr) return;
|
if(!thr) return;
|
||||||
log_info("pthread id is %x", (int)thr->id);
|
log_info("pthread id is %x", (int)thr->id);
|
||||||
log_info("thread func is %x", (int)thr->func);
|
log_info("thread func is %llx", (unsigned long long)(size_t)thr->func);
|
||||||
log_info("thread arg is %x (%d)", (int)thr->arg,
|
log_info("thread arg is %llx (%d)",
|
||||||
|
(unsigned long long)(size_t)thr->arg,
|
||||||
(thr->arg?*(int*)thr->arg:0));
|
(thr->arg?*(int*)thr->arg:0));
|
||||||
log_info("thread num is %d", thr->num);
|
log_info("thread num is %d", thr->num);
|
||||||
log_info("locks created %d", thr->locks_created);
|
log_info("locks created %d", thr->locks_created);
|
||||||
|
|
@ -809,7 +811,8 @@ thread_debug_info(struct thr_check* thr)
|
||||||
w = thr->waiting;
|
w = thr->waiting;
|
||||||
f = thr->holding_first;
|
f = thr->holding_first;
|
||||||
l = thr->holding_last;
|
l = thr->holding_last;
|
||||||
log_info("thread waiting for a lock: %s %x", w?"yes":"no", (int)w);
|
log_info("thread waiting for a lock: %s %llx", w?"yes":"no",
|
||||||
|
(unsigned long long)(size_t)w);
|
||||||
lock_debug_info(w);
|
lock_debug_info(w);
|
||||||
log_info("thread holding first: %s, last: %s", f?"yes":"no",
|
log_info("thread holding first: %s, last: %s", f?"yes":"no",
|
||||||
l?"yes":"no");
|
l?"yes":"no");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue