aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-20 05:45:09 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-20 05:45:09 +0000
commitc852ab43ca97e0ebc3587a30cb4a295003a0a8ca (patch)
tree74d7fa437fd9847c1b0b40bcf97a487c778f222a /include/asterisk/lock.h
parentda8aca2f61c92f2333eccbbbf362ccf5518bcd3d (diff)
Fix typo and missing format string in a fprintf in lock.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4038 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/lock.h')
-rwxr-xr-xinclude/asterisk/lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index dad4fcc0a..db57e31f8 100755
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -266,11 +266,11 @@ static inline int __ast_pthread_mutex_unlock(char *filename, int lineno, char *f
#endif
--t->reentrancy;
if (t->reentrancy < 0) {
- fprintf(stderr, "%s line %d (%s): Freed more times than we've locked!\n",
+ fprintf(stderr, "%s line %d (%s): mutex '%s' freed more times than we've locked!\n",
filename, lineno, func, mutex_name);
t->reentrancy = 0;
}
- if (!t->rentrancy) {
+ if (!t->reentrancy) {
t->file = NULL;
t->lineno = 0;
t->func = NULL;