From: Dmitry Vyukov Date: Fri, 25 May 2012 09:47:18 +0000 (+0000) Subject: tsan: output message about failure to intercept only if verbosity flag is passed X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e86497ee1c2df7f88a49b4792dade697a8f4f5fa;p=platform%2Fupstream%2Fllvm.git tsan: output message about failure to intercept only if verbosity flag is passed llvm-svn: 157465 --- diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index 424404a..8eac562 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -139,7 +139,7 @@ class ScopedInterceptor { #define TSAN_INTERCEPTOR(ret, func, ...) INTERCEPTOR(ret, func, __VA_ARGS__) #define TSAN_INTERCEPT(func) \ - if (!INTERCEPT_FUNCTION(func)) \ + if (!INTERCEPT_FUNCTION(func) && flags()->verbosity) \ Printf("ThreadSanitizer: failed to intercept '" #func "' function\n"); \ /**/