summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-28 13:05:32 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-28 13:05:32 +0000
commitcf7259c09490a96b88dd9f38552184e0c9322772 (patch)
treee7bdae388b485662139f24b64d9633927ebff689 /compiler-rt/lib
parent33dd200ba9fccb1eb4ab8f022809405533684b3a (diff)
downloadbcm5719-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/lib')
-rw-r--r--compiler-rt/lib/asan/asan_stack.cc4
-rw-r--r--compiler-rt/lib/msan/msan_report.cc2
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;
OpenPOWER on IntegriCloud