From e86497ee1c2df7f88a49b4792dade697a8f4f5fa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 25 May 2012 09:47:18 +0000 Subject: [PATCH] tsan: output message about failure to intercept only if verbosity flag is passed llvm-svn: 157465 --- compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); \ /**/ -- 2.7.4