mutex_lock() now prints out the semaphore ID if it panics.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2571 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fe8ffea9f4
commit
8ccc1ad67d
@ -138,7 +138,7 @@ mutex_lock(mutex *mutex)
|
||||
panic("mutex_lock: called with interrupts disabled for mutex %p, sem %#lx\n", mutex, mutex->sem);
|
||||
|
||||
if (me == mutex->holder)
|
||||
panic("mutex_lock failure: mutex %p acquired twice by thread 0x%lx\n", mutex, me);
|
||||
panic("mutex_lock failure: mutex %p (sem = 0x%lx) acquired twice by thread 0x%lx\n", mutex, mutex->sem, me);
|
||||
|
||||
acquire_sem(mutex->sem);
|
||||
mutex->holder = me;
|
||||
|
Loading…
x
Reference in New Issue
Block a user