From 69bd9ca91cc678ba7da002d6cbb0269d57d8decd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Mar 2014 12:02:17 +0000 Subject: [PATCH] tsan: better error message wording in deadlock reports llvm-svn: 203109 --- compiler-rt/lib/tsan/dd/dd_rtl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/dd/dd_rtl.cc b/compiler-rt/lib/tsan/dd/dd_rtl.cc index 840a25a2ab77..329d59d46480 100644 --- a/compiler-rt/lib/tsan/dd/dd_rtl.cc +++ b/compiler-rt/lib/tsan/dd/dd_rtl.cc @@ -42,7 +42,7 @@ static void ReportDeadlock(Thread *thr, DDReport *rep) { Printf("==============================\n"); Printf("WARNING: lock-order-inversion (potential deadlock)\n"); for (int i = 0; i < rep->n; i++) { - Printf("Thread %d locks mutex %llu under mutex %llu:\n", + Printf("Thread %d locks mutex %llu while holding mutex %llu:\n", rep->loop[i].thr_ctx, rep->loop[i].mtx_ctx1, rep->loop[i].mtx_ctx0); PrintStackTrace(thr, rep->loop[i].stk); }