tsan: output message about failure to intercept only if verbosity flag is passed
authorDmitry Vyukov <dvyukov@google.com>
Fri, 25 May 2012 09:47:18 +0000 (09:47 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 25 May 2012 09:47:18 +0000 (09:47 +0000)
llvm-svn: 157465

compiler-rt/lib/tsan/rtl/tsan_interceptors.cc

index 424404a..8eac562 100644 (file)
@@ -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"); \
 /**/