diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-10-28 13:05:32 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-10-28 13:05:32 +0000 |
commit | db92faf488988543b18aaac537ac5ee4f4ee68a5 (patch) | |
tree | 016afe98bea2c4f255819fabc3fe8e9ba0737ce6 | |
parent | 58dc8bef3f86f4f8503359b5146be9d78d7e3ef0 (diff) | |
download | compiler-rt-db92faf488988543b18aaac537ac5ee4f4ee68a5.tar.gz compiler-rt-db92faf488988543b18aaac537ac5ee4f4ee68a5.tar.bz2 compiler-rt-db92faf488988543b18aaac537ac5ee4f4ee68a5.tar.xz |
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
-rw-r--r-- | lib/asan/asan_stack.cc | 4 | ||||
-rw-r--r-- | 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("<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); } 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; |