diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-04-03 03:07:21 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-04-03 03:07:21 +0000 |
commit | e55884bd0a175db555ff3643f76408bbf2a2e37b (patch) | |
tree | e2bfac0a476bfe1f8fb84e5e1ac34cc65061ea55 /libc/malloc_debug/malloc_debug.cpp | |
parent | f8715c2b392e2ad46c36bef35073280aec26110c (diff) | |
parent | 2fb7b814b087b116542bee9b76c42a1d8829f9bc (diff) |
Snap for 5430508 from 2fb7b814b087b116542bee9b76c42a1d8829f9bc to qt-release
Change-Id: I4c1ec6a98f3b3dbd34f9ea6ddcf44d4d8ad427ee
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
-rw-r--r-- | libc/malloc_debug/malloc_debug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index 093bdee8c..114579626 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -30,6 +30,7 @@ #include <inttypes.h> #include <malloc.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <sys/cdefs.h> #include <sys/param.h> @@ -252,6 +253,10 @@ bool debug_initialize(const MallocDispatch* malloc_dispatch, int* malloc_zygote_ // of different error cases. backtrace_startup(); + if (g_debug->config().options() & VERBOSE) { + info_log("%s: malloc debug enabled", getprogname()); + } + return true; } |