summaryrefslogtreecommitdiff
path: root/lib/msan/msan_report.cc
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2013-12-05 12:04:51 +0000
committerSergey Matveev <earthdok@google.com>2013-12-05 12:04:51 +0000
commit32bb25a810ce518282d68b342f8df2b50f496188 (patch)
treea29d9fdad7b7820f5193f2e39e432b58e69dceee /lib/msan/msan_report.cc
parent42a6725e69355e42c85b8748391aee67bf00352e (diff)
[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/msan/msan_report.cc')
-rw-r--r--lib/msan/msan_report.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc
index e3ef99307..83c1fbb84 100644
--- a/lib/msan/msan_report.cc
+++ b/lib/msan/msan_report.cc
@@ -36,8 +36,7 @@ class Decorator: private __sanitizer::AnsiColorDecorator {
static void DescribeOrigin(u32 origin) {
Decorator d;
- if (common_flags()->verbosity)
- Printf(" raw origin id: %d\n", origin);
+ VPrintf(1, " raw origin id: %d\n", origin);
uptr pc;
if (const char *so = GetOriginDescrIfStack(origin, &pc)) {
char* s = internal_strdup(so);