diff options
author | Scott Lobdell <slobdell@google.com> | 2019-04-04 09:25:11 -0700 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2019-04-04 09:25:11 -0700 |
commit | 8fe13fef4a708240c85cffabf0b35632c2fa052c (patch) | |
tree | 31ee2b3af403980f58527b6906c66746170c91b9 /libc/malloc_debug/malloc_debug.cpp | |
parent | d00ad5402642f5f1454adcc51fe56bca5b35f656 (diff) | |
parent | 5b01af77b24172537f03e56fa3d51daddb3ae676 (diff) |
Merge QP1A.190404.001
Change-Id: I3b35e6260c49ff3f40ede9f722cbe7dcdbc821bd
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; } |