LSan: Print warning about dynamic linker only in verbose mode
authorAlexey Samsonov <samsonov@google.com>
Fri, 14 Feb 2014 15:12:46 +0000 (15:12 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 14 Feb 2014 15:12:46 +0000 (15:12 +0000)
llvm-svn: 201421

compiler-rt/lib/lsan/lsan_common_linux.cc

index 4932982..faa24d7 100644 (file)
@@ -19,6 +19,7 @@
 #include <link.h>
 
 #include "sanitizer_common/sanitizer_common.h"
+#include "sanitizer_common/sanitizer_flags.h"
 #include "sanitizer_common/sanitizer_linux.h"
 #include "sanitizer_common/sanitizer_stackdepot.h"
 
@@ -43,11 +44,11 @@ void InitializePlatformSpecificModules() {
     return;
   }
   if (num_matches == 0)
-    Report("LeakSanitizer: Dynamic linker not found. "
-           "TLS will not be handled correctly.\n");
+    VReport(1, "LeakSanitizer: Dynamic linker not found. "
+            "TLS will not be handled correctly.\n");
   else if (num_matches > 1)
-    Report("LeakSanitizer: Multiple modules match \"%s\". "
-           "TLS will not be handled correctly.\n", kLinkerName);
+    VReport(1, "LeakSanitizer: Multiple modules match \"%s\". "
+            "TLS will not be handled correctly.\n", kLinkerName);
   linker = 0;
 }