Merged revisions 76937 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Jul 2007 22:13:37 +0000 (22:13 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Jul 2007 22:13:37 +0000 (22:13 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r76937 | tilghman | 2007-07-24 17:12:43 -0500 (Tue, 24 Jul 2007) | 10 lines

Merged revisions 76934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76934 | tilghman | 2007-07-24 17:11:33 -0500 (Tue, 24 Jul 2007) | 2 lines

Oops, res contains the error code, not errno.  I was wondering why a mutex was reporting "No such file or directory"...

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76940 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/lock.h

index 22a23a8..4376665 100644 (file)
@@ -273,7 +273,7 @@ static inline int __ast_pthread_mutex_lock(const char *filename, int lineno, con
                }
        } else {
                __ast_mutex_logger("%s line %d (%s): Error obtaining mutex: %s\n",
-                                  filename, lineno, func, strerror(errno));
+                                  filename, lineno, func, strerror(res));
                DO_THREAD_CRASH;
        }