diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-11-05 01:16:48 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-11-05 01:16:48 +0000 |
commit | 438a247012e5a2d3bd9fe6d95c52b1c52dda4511 (patch) | |
tree | 8df5eca7b90d02aff89cfc27fcd848ca74a19ce9 /lib/sanitizer_common/sanitizer_common.cc | |
parent | 4dc8693946cb2b5ea0bf48038324957a44f4e12b (diff) |
[Sanitizer] Use ReportMmapFailureAndDie() in all applicable mmap variants on Posix.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@252121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_common.cc b/lib/sanitizer_common/sanitizer_common.cc index 2fb88688d..b40a457c0 100644 --- a/lib/sanitizer_common/sanitizer_common.cc +++ b/lib/sanitizer_common/sanitizer_common.cc @@ -164,7 +164,7 @@ void NORETURN CheckFailed(const char *file, int line, const char *cond, } void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type, - error_t err) { + const char *mmap_type, error_t err) { static int recursion_count; if (recursion_count) { // The Report() and CHECK calls below may call mmap recursively and fail. @@ -174,8 +174,8 @@ void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type, } recursion_count++; Report("ERROR: %s failed to " - "allocate 0x%zx (%zd) bytes of %s (error code: %d)\n", - SanitizerToolName, size, size, mem_type, err); + "%s 0x%zx (%zd) bytes of %s (error code: %d)\n", + SanitizerToolName, mmap_type, size, size, mem_type, err); DumpProcessMap(); UNREACHABLE("unable to mmap"); } |