diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-08-01 22:22:25 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-08-01 22:22:25 +0000 |
commit | 55414c1d124546b452292fdf28dc9ef5bf326085 (patch) | |
tree | 311b3d25827cce1bdc729d8a05e9962c3845d2b3 /lib/sanitizer_common/sanitizer_printf.cc | |
parent | 3982c2153bab743e9677dc4ef2d085c11a6594c4 (diff) |
[sanitizer_common] Fuchsia OS support code
Submitted on behalf of Roland McGrath.
Reviewers: vitalybuka, alekseyshl, kcc
Reviewed By: vitalybuka
Subscribers: cryptoad, srhines, kubamracek, mgorny, phosek, filcab, llvm-commits
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36031
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@309756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_printf.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc index 520206441..a44cfae40 100644 --- a/lib/sanitizer_common/sanitizer_printf.cc +++ b/lib/sanitizer_common/sanitizer_printf.cc @@ -256,7 +256,9 @@ static void NOINLINE SharedPrintfCodeNoBuffer(bool append_pid, RAW_CHECK_MSG(needed_length < kLen, \ "Buffer in Report is too short!\n"); \ } - if (append_pid) { + // Fuchsia's logging infrastructure always keeps track of the logging + // process, thread, and timestamp, so never prepend such information. + if (!SANITIZER_FUCHSIA && append_pid) { int pid = internal_getpid(); const char *exe_name = GetProcessName(); if (common_flags()->log_exe_name && exe_name) { |