[compiler-rt] r193231 - Hoist the addition of the prefix "SUMMARY: " from

Nick Lewycky nicholas at mxc.ca
Wed Oct 23 00:45:53 PDT 2013


Author: nicholas
Date: Wed Oct 23 02:45:53 2013
New Revision: 193231

URL: http://llvm.org/viewvc/llvm-project?rev=193231&view=rev
Log:
Hoist the addition of the prefix "SUMMARY: " from
__sanitizer_report_error_summary to ReportErrorSummary.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc?rev=193231&r1=193230&r2=193231&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc Wed Oct 23 02:45:53 2013
@@ -168,7 +168,8 @@ void ReportErrorSummary(const char *erro
   const int kMaxSize = 1024;  // We don't want a summary too long.
   InternalScopedBuffer<char> buff(kMaxSize);
   internal_snprintf(
-      buff.data(), kMaxSize, "%s: %s %s:%d %s", SanitizerToolName, error_type,
+      buff.data(), kMaxSize, "SUMMARY: %s: %s %s:%d %s", SanitizerToolName,
+      error_type,
       file ? StripPathPrefix(file, common_flags()->strip_path_prefix) : "??",
       line, function ? function : "??");
   __sanitizer_report_error_summary(buff.data());
@@ -233,6 +234,6 @@ void NOINLINE __sanitizer_sandbox_on_not
 }
 
 void __sanitizer_report_error_summary(const char *error_summary) {
-  Printf("SUMMARY: %s\n", error_summary);
+  Printf("%s\n", error_summary);
 }
 }  // extern "C"





More information about the llvm-commits mailing list