summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/FreeTrackData.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-04-15 14:13:52 -0700
committerChristopher Ferris <cferris@google.com>2016-04-15 14:13:52 -0700
commitea26b33248663a836d2f0719cb4e46967b648fe2 (patch)
tree30c13529fed73bab313373ba3ad5a10c9795ced8 /libc/malloc_debug/FreeTrackData.cpp
parent668fddb3ba36b52a16381513b1a0a42d9dd910e1 (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/FreeTrackData.cpp')
-rw-r--r--libc/malloc_debug/FreeTrackData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/malloc_debug/FreeTrackData.cpp b/libc/malloc_debug/FreeTrackData.cpp
index 682f93d02..8e6502e10 100644
--- a/libc/malloc_debug/FreeTrackData.cpp
+++ b/libc/malloc_debug/FreeTrackData.cpp
@@ -48,7 +48,7 @@ void FreeTrackData::LogFreeError(const Header* header, const uint8_t* pointer) {
uint8_t fill_free_value = debug_->config().fill_free_value;
for (size_t i = 0; i < header->usable_size; i++) {
if (pointer[i] != fill_free_value) {
- error_log(" pointer[%zu] = 0x%02x (expected 0x%02x)", i, pointer[i], fill_free_value);
+ error_log(" allocation[%zu] = 0x%02x (expected 0x%02x)", i, pointer[i], fill_free_value);
}
}
auto back_iter = backtraces_.find(header);