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 | cf7259c09490a96b88dd9f38552184e0c9322772 (patch) | |
| tree | e7bdae388b485662139f24b64d9633927ebff689 /compiler-rt | |
| parent | 33dd200ba9fccb1eb4ab8f022809405533684b3a (diff) | |
| download | bcm5719-llvm-cf7259c09490a96b88dd9f38552184e0c9322772.tar.gz bcm5719-llvm-cf7259c09490a96b88dd9f38552184e0c9322772.zip | |
asan/msan: separate different report blocks with new lines
this makes the reports consistent with tsan, and much more readable.
llvm-svn: 193520
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/asan_stack.cc | 4 | ||||
| -rw-r--r-- | compiler-rt/lib/msan/msan_report.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_stack.cc b/compiler-rt/lib/asan/asan_stack.cc index cbc151cc1ba..b70ee81410e 100644 --- a/compiler-rt/lib/asan/asan_stack.cc +++ b/compiler-rt/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/compiler-rt/lib/msan/msan_report.cc b/compiler-rt/lib/msan/msan_report.cc index 354bc80b7f3..c0765016074 100644 --- a/compiler-rt/lib/msan/msan_report.cc +++ b/compiler-rt/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; |

