diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-14 15:12:46 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-14 15:12:46 +0000 |
commit | 796fb866324bd516b600342ddb1ef1f05b26379c (patch) | |
tree | 9795d0476236cc48934ec346e05a0c79b96978a6 /lib/lsan | |
parent | 85623a9007b9e29e9a56e28a07ed334faa8d9946 (diff) |
LSan: Print warning about dynamic linker only in verbose mode
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan')
-rw-r--r-- | lib/lsan/lsan_common_linux.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/lsan/lsan_common_linux.cc b/lib/lsan/lsan_common_linux.cc index 49329826c..faa24d779 100644 --- a/lib/lsan/lsan_common_linux.cc +++ b/lib/lsan/lsan_common_linux.cc @@ -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; } |