Changed error logging
This commit is contained in:
parent
768ff9c0cb
commit
d813bb481f
@ -112,12 +112,12 @@ int lock_ibc(char *func)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (is_locked) {
|
if (is_locked) {
|
||||||
WriteError("%s() mutex already locked", func);
|
WriteError("IBC: %s() mutex lock, already locked", func);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((rc = pthread_mutex_lock(&b_mutex))) {
|
if ((rc = pthread_mutex_lock(&b_mutex))) {
|
||||||
WriteError("$%s() mutex lock", func);
|
WriteError("$IBC: %s() mutex lock", func);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,13 +132,13 @@ void unlock_ibc(char *func)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (!is_locked) {
|
if (!is_locked) {
|
||||||
WriteError("%s() mutex unlock, was not locked", func);
|
WriteError("IBC: %s() mutex unlock, was not locked", func);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
is_locked = FALSE;
|
is_locked = FALSE;
|
||||||
|
|
||||||
if ((rc = pthread_mutex_unlock(&b_mutex)))
|
if ((rc = pthread_mutex_unlock(&b_mutex)))
|
||||||
WriteError("$%s() mutex unlock", func);
|
WriteError("$IBC: %s() mutex unlock", func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user