Mercurial > libjeffpc
changeset 768:39f93d3a8108
synch: don't call print_{lock,cond} directly
The next commit will make them internal helpers.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 25 Jul 2019 14:12:38 -0400 |
parents | 597466aacd4c |
children | c088e20c4505 |
files | synch.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/synch.c Thu Jul 25 14:06:23 2019 -0400 +++ b/synch.c Thu Jul 25 14:12:38 2019 -0400 @@ -309,7 +309,7 @@ cmn_err(CE_CRIT, "lockdep: while holding:"); print_held_locks(held); cmn_err(CE_CRIT, "lockdep: the cond to wait on:"); - print_cond(cond, where); + print_synch_as(&cond->info, where, cond->info.type); atomic_set(&lockdep_on, 0); } @@ -321,11 +321,11 @@ cmn_err(CE_CRIT, "lockdep: thread is trying to %s with a lock it " "doesn't hold:", op); - print_lock(lock, where); + print_synch_as(&lock->info, where, lock->info.type); cmn_err(CE_CRIT, "lockdep: while holding:"); print_held_locks(NULL); cmn_err(CE_CRIT, "lockdep: the cond to wait on:"); - print_cond(cond, where); + print_synch_as(&cond->info, where, cond->info.type); panic("lockdep: Aborting - %s with an unheld lock", op); }