From: VMware, Inc <> Date: Thu, 27 Oct 2011 18:49:11 +0000 (-0700) Subject: lib/lock: exclusive locks should dump their owner(s) X-Git-Tag: 2011.10.26-514583~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e60e13aebd695fbf590b0096ab2b643e59eea09;p=thirdparty%2Fopen-vm-tools.git lib/lock: exclusive locks should dump their owner(s) Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/lock/ulExcl.c b/open-vm-tools/lib/lock/ulExcl.c index c2ba393e0..2141a2cf1 100644 --- a/open-vm-tools/lib/lock/ulExcl.c +++ b/open-vm-tools/lib/lock/ulExcl.c @@ -145,6 +145,13 @@ MXUserDumpExclLock(MXUserHeader *header) // IN: Warning("\tcount %u\n", lock->recursiveLock.referenceCount); +#if defined(_WIN32) + Warning("\towner %u\n", lock->recursiveLock.nativeThreadID); +#else + Warning("\towner 0x%p\n", + (void *)(uintptr_t)lock->recursiveLock.nativeThreadID); +#endif + if (stats && (stats->holder != NULL)) { Warning("\tholder %p\n", stats->holder); }