summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_printf.cc
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2014-11-13 19:37:30 +0000
committerYury Gribov <y.gribov@samsung.com>2014-11-13 19:37:30 +0000
commitd57f53b1c97f990ff94f92ecfe70bc0b6a6ebc86 (patch)
treed417d8990b9adef14e0f00ab8ca5b68b660703fe /lib/sanitizer_common/sanitizer_printf.cc
parent38ac0e035fd702a0f8e726f5bcf652541ba05205 (diff)
Removed r221896, it seems to break build in various ways.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc
index ca0704cde..3be6723cd 100644
--- a/lib/sanitizer_common/sanitizer_printf.cc
+++ b/lib/sanitizer_common/sanitizer_printf.cc
@@ -253,11 +253,9 @@ static void SharedPrintfCode(bool append_pid, const char *format,
needed_length = 0;
if (append_pid) {
int pid = internal_getpid();
- const char *pname = StripModuleName(GetBinaryName());
- needed_length += internal_snprintf(buffer, buffer_size,
- "==%s %d==", pname, pid);
+ needed_length += internal_snprintf(buffer, buffer_size, "==%d==", pid);
if (needed_length >= buffer_size) {
- // Process name + pid do not fit into the current buffer.
+ // The pid doesn't fit into the current buffer.
if (!use_mmap)
continue;
RAW_CHECK_MSG(needed_length < kLen, "Buffer in Report is too short!\n");