From d57f53b1c97f990ff94f92ecfe70bc0b6a6ebc86 Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Thu, 13 Nov 2014 19:37:30 +0000 Subject: 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 --- lib/sanitizer_common/sanitizer_printf.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_printf.cc') 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"); -- cgit v1.2.3