From db92faf488988543b18aaac537ac5ee4f4ee68a5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 Oct 2013 13:05:32 +0000 Subject: asan/msan: separate different report blocks with new lines this makes the reports consistent with tsan, and much more readable. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193520 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_stack.cc | 4 +++- lib/msan/msan_report.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/asan/asan_stack.cc b/lib/asan/asan_stack.cc index cbc151cc..b70ee814 100644 --- a/lib/asan/asan_stack.cc +++ b/lib/asan/asan_stack.cc @@ -26,12 +26,14 @@ static bool MaybeCallAsanSymbolize(const void *pc, char *out_buffer, void PrintStack(const uptr *trace, uptr size) { if (!trace) { - Printf("\n"); + Printf("\n\n"); return; } StackTrace::PrintStack(trace, size, common_flags()->symbolize, MaybeCallAsanSymbolize); + Printf("\n"); } + void PrintStack(StackTrace *stack) { PrintStack(stack->trace, stack->size); } diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc index 354bc80b..c0765016 100644 --- a/lib/msan/msan_report.cc +++ b/lib/msan/msan_report.cc @@ -37,11 +37,11 @@ class Decorator: private __sanitizer::AnsiColorDecorator { 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; -- cgit v1.2.3