[compiler-rt] r193520 - asan/msan: separate different report blocks with new lines

Dmitry Vyukov dvyukov at google.com
Mon Oct 28 06:05:32 PDT 2013


Author: dvyukov
Date: Mon Oct 28 08:05:32 2013
New Revision: 193520

URL: http://llvm.org/viewvc/llvm-project?rev=193520&view=rev
Log:
asan/msan: separate different report blocks with new lines

this makes the reports consistent with tsan, and much more readable.


Modified:
    compiler-rt/trunk/lib/asan/asan_stack.cc
    compiler-rt/trunk/lib/msan/msan_report.cc

Modified: compiler-rt/trunk/lib/asan/asan_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stack.cc?rev=193520&r1=193519&r2=193520&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stack.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_stack.cc Mon Oct 28 08:05:32 2013
@@ -26,12 +26,14 @@ static bool MaybeCallAsanSymbolize(const
 
 void PrintStack(const uptr *trace, uptr size) {
   if (!trace) {
-    Printf("<empty stack>\n");
+    Printf("<empty stack>\n\n");
     return;
   }
   StackTrace::PrintStack(trace, size, common_flags()->symbolize,
                          MaybeCallAsanSymbolize);
+    Printf("\n");
 }
+
 void PrintStack(StackTrace *stack) {
   PrintStack(stack->trace, stack->size);
 }

Modified: compiler-rt/trunk/lib/msan/msan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_report.cc?rev=193520&r1=193519&r2=193520&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_report.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_report.cc Mon Oct 28 08:05:32 2013
@@ -37,11 +37,11 @@ class Decorator: private __sanitizer::An
 static void PrintStack(const uptr *trace, uptr size) {
   SymbolizerScope sym_scope;
   StackTrace::PrintStack(trace, size, true, 0);
+  Printf("\n");
 }
 
 static void DescribeOrigin(u32 origin) {
   Decorator d;
-  Printf("\n");
   if (common_flags()->verbosity)
     Printf("  raw origin id: %d\n", origin);
   uptr pc;





More information about the llvm-commits mailing list