From: James Golovich Date: Wed, 20 Oct 2004 05:45:09 +0000 (+0000) Subject: Fix typo and missing format string in a fprintf in lock.h X-Git-Tag: 1.2.0-beta1~1990 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7c92a9f152eb42b9b0bdcc2231587ca9ba77367;p=thirdparty%2Fasterisk.git Fix typo and missing format string in a fprintf in lock.h git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4038 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index dad4fcc0a9..db57e31f85 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;