diff options
author | Sergey Matveev <earthdok@google.com> | 2013-12-05 12:04:51 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-12-05 12:04:51 +0000 |
commit | 32bb25a810ce518282d68b342f8df2b50f496188 (patch) | |
tree | a29d9fdad7b7820f5193f2e39e432b58e69dceee /lib/sanitizer_common/sanitizer_libignore.cc | |
parent | 42a6725e69355e42c85b8748391aee67bf00352e (diff) | |
download | compiler-rt-32bb25a810ce518282d68b342f8df2b50f496188.tar.gz |
[sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code.
Instead of "if (common_flags()->verbosity) Report(...)" we now have macros.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_libignore.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_libignore.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_libignore.cc b/lib/sanitizer_common/sanitizer_libignore.cc index 0f193a130..a0bb871b2 100644 --- a/lib/sanitizer_common/sanitizer_libignore.cc +++ b/lib/sanitizer_common/sanitizer_libignore.cc @@ -76,9 +76,10 @@ void LibIgnore::OnLibraryLoaded(const char *name) { loaded = true; if (lib->loaded) continue; - if (common_flags()->verbosity) - Report("Matched called_from_lib suppression '%s' against library" - " '%s'\n", lib->templ, module.data()); + VReport(1, + "Matched called_from_lib suppression '%s' against library" + " '%s'\n", + lib->templ, module.data()); lib->loaded = true; lib->name = internal_strdup(module.data()); const uptr idx = atomic_load(&loaded_count_, memory_order_relaxed); |