diff options
author | Christopher Ferris <cferris@google.com> | 2019-04-02 13:06:53 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-02 13:06:53 -0700 |
commit | f2905f4ce3102618b0faa4045fc43edecc3b5557 (patch) | |
tree | 725f1d300756814d09789914586fea939d4b848b /libc/malloc_debug/malloc_debug.cpp | |
parent | b325aaa0d133d777b3b6a9942418307b136fc417 (diff) | |
parent | e6fd53b751c253ce9315875bed838a6d549132f3 (diff) |
Merge "Disable info messages by default for malloc debug."
am: e6fd53b751
Change-Id: I088f92572a5b0af474a311f6bf73b48924b2960a
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; } |