diff options
author | Kostya Serebryany <kcc@google.com> | 2012-08-28 11:34:40 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-08-28 11:34:40 +0000 |
commit | 283c296b64bc55deec9698260b3427a9b050a925 (patch) | |
tree | c7474098c8e295c04bde6e878203be8ca7a66901 /lib/asan/asan_stack.cc | |
parent | 2c29212c42d457ade0bbd1d01de92195dd9ce925 (diff) |
[asan] get rid of AsanPrintf in favor of Printf from sanitizer_common
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_stack.cc')
-rw-r--r-- | lib/asan/asan_stack.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/asan/asan_stack.cc b/lib/asan/asan_stack.cc index 96c1fdf76..917b9f6db 100644 --- a/lib/asan/asan_stack.cc +++ b/lib/asan/asan_stack.cc @@ -54,7 +54,7 @@ void AsanStackTrace::PrintStack(uptr *addr, uptr size) { // We can't know anything about the string returned by external // symbolizer, but if it starts with filename, try to strip path prefix // from it. - AsanPrintf(" #%zu 0x%zx %s\n", frame_num, pc, StripPathPrefix(buff)); + Printf(" #%zu 0x%zx %s\n", frame_num, pc, StripPathPrefix(buff)); frame_num++; continue; } @@ -67,18 +67,18 @@ void AsanStackTrace::PrintStack(uptr *addr, uptr size) { if (addr_frames_num > 0) { for (uptr j = 0; j < addr_frames_num; j++) { AddressInfo &info = addr_frames[j]; - AsanPrintf(" #%zu 0x%zx", frame_num, pc); + Printf(" #%zu 0x%zx", frame_num, pc); if (info.function) { - AsanPrintf(" in %s", info.function); + Printf(" in %s", info.function); } if (info.file) { - AsanPrintf(" %s:%d:%d", StripPathPrefix(info.file), info.line, + Printf(" %s:%d:%d", StripPathPrefix(info.file), info.line, info.column); } else if (info.module) { - AsanPrintf(" (%s+0x%zx)", StripPathPrefix(info.module), + Printf(" (%s+0x%zx)", StripPathPrefix(info.module), info.module_offset); } - AsanPrintf("\n"); + Printf("\n"); info.Clear(); frame_num++; } @@ -87,10 +87,10 @@ void AsanStackTrace::PrintStack(uptr *addr, uptr size) { char filename[4096]; if (proc_maps.GetObjectNameAndOffset(pc, &offset, filename, sizeof(filename))) { - AsanPrintf(" #%zu 0x%zx (%s+0x%zx)\n", + Printf(" #%zu 0x%zx (%s+0x%zx)\n", frame_num, pc, StripPathPrefix(filename), offset); } else { - AsanPrintf(" #%zu 0x%zx\n", frame_num, pc); + Printf(" #%zu 0x%zx\n", frame_num, pc); } frame_num++; } |