summaryrefslogtreecommitdiff
path: root/lib/asan/asan_thread.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-06 13:11:29 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-06 13:11:29 +0000
commite954101f6602ac181a2c3accfbbad0ae51b0bf7c (patch)
tree59996ca17d614af49772a8c83e378e6829ebb212 /lib/asan/asan_thread.h
parente4309e8141382372465ea065e86d8f946aa99c38 (diff)
downloadcompiler-rt-e954101f6602ac181a2c3accfbbad0ae51b0bf7c.tar.gz
compiler-rt-e954101f6602ac181a2c3accfbbad0ae51b0bf7c.tar.bz2
compiler-rt-e954101f6602ac181a2c3accfbbad0ae51b0bf7c.tar.xz
[Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.h')
-rw-r--r--lib/asan/asan_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_thread.h b/lib/asan/asan_thread.h
index e76c99b7..a504b834 100644
--- a/lib/asan/asan_thread.h
+++ b/lib/asan/asan_thread.h
@@ -41,7 +41,7 @@ class AsanThreadSummary {
if (tid_ == 0) return; // no need to announce the main thread.
if (!announced_) {
announced_ = true;
- Printf("Thread T%d created by T%d here:\n", tid_, parent_tid_);
+ AsanPrintf("Thread T%d created by T%d here:\n", tid_, parent_tid_);
stack_.PrintStack();
}
}