diff options
author | Christopher Ferris <cferris@google.com> | 2016-04-15 14:13:52 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2016-04-15 14:13:52 -0700 |
commit | ea26b33248663a836d2f0719cb4e46967b648fe2 (patch) | |
tree | 30c13529fed73bab313373ba3ad5a10c9795ced8 /libc/malloc_debug/GuardData.cpp | |
parent | 668fddb3ba36b52a16381513b1a0a42d9dd910e1 (diff) |
Small fixes to malloc debug.
- Change the printed name from pointer to allocation to be explicit about
what is wrong.
- Change the signal to be SIGRTMAX - 19 instead of SIGRTMIN. This should
prevent problems if we have to reserve other real time signals.
Bug: 28218530
Change-Id: Ic7d9c471929264d8e47bafaffc16e099840c9e71
Diffstat (limited to 'libc/malloc_debug/GuardData.cpp')
-rw-r--r-- | libc/malloc_debug/GuardData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/malloc_debug/GuardData.cpp b/libc/malloc_debug/GuardData.cpp index 48961b6ae..e207b8630 100644 --- a/libc/malloc_debug/GuardData.cpp +++ b/libc/malloc_debug/GuardData.cpp @@ -57,7 +57,7 @@ void GuardData::LogFailure(const Header* header, const void* pointer, const void const uint8_t* real = reinterpret_cast<const uint8_t*>(data); for (size_t i = 0; i < cmp_mem_.size(); i++, pointer_idx++) { if (real[i] != expected[i]) { - error_log(" pointer[%d] = 0x%02x (expected 0x%02x)", pointer_idx, real[i], expected[i]); + error_log(" allocation[%d] = 0x%02x (expected 0x%02x)", pointer_idx, real[i], expected[i]); } } |