summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-03-29 20:00:31 -0700
committer Elliott Hughes <enh@google.com> 2012-03-29 20:00:31 -0700
commitb5db3bb5b17f2bb42f3c62408938f4bf939f8a39 (patch)
treec807681e5c5bab85d858bda8ce31b391131f5740
parent630e77d4648093ce9870c7558d78edea24eab06d (diff)
Include more detail in a few CHECKs.
Change-Id: Ie8142ebb8c353bcbca27708bf662f21018c2c915
-rw-r--r--src/thread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.cc b/src/thread.cc
index fa78365673..c4934b091f 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1740,11 +1740,11 @@ void Thread::CheckSafeToLockOrUnlock(MutexRank rank, bool is_locking) {
bad_mutexes_held = true;
}
}
- CHECK(!bad_mutexes_held);
+ CHECK(!bad_mutexes_held) << rank;
}
++held_mutexes_[rank];
} else {
- CHECK_GT(held_mutexes_[rank], 0U);
+ CHECK_GT(held_mutexes_[rank], 0U) << rank;
--held_mutexes_[rank];
}
}