diff options
author | Christopher Ferris <cferris@google.com> | 2019-04-02 19:46:29 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-04-02 19:46:29 +0000 |
commit | e6fd53b751c253ce9315875bed838a6d549132f3 (patch) | |
tree | 725f1d300756814d09789914586fea939d4b848b /libc/malloc_debug/malloc_debug.cpp | |
parent | 4fbe1266433405c89f6b288fbc779728934c067a (diff) | |
parent | c328e4465d12d760f5fbcb2daddf5fa4138f50b1 (diff) |
Merge "Disable info messages by default for malloc debug."
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; } |