commit | 6d8afc0f36cc55d3314015592161fa43f09cf77c | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Sun May 28 13:27:42 2023 -0700 |
committer | Austin Schuh <austin.linux@gmail.com> | Sun May 28 13:27:42 2023 -0700 |
tree | 890cae668b234485c171693b26e27f4cffdd53bf | |
parent | 47e382e52ca5ccc0fd44284c593f8a71c0be9b42 [diff] |
Make malloc hook print a VLOG. Change-Id: I092dbb9379225a6fa380a37e1ebc50ee61df40bd Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/realtime.cc b/aos/realtime.cc index d08dd91..2f5e1d9 100644 --- a/aos/realtime.cc +++ b/aos/realtime.cc
@@ -337,7 +337,9 @@ has_malloc_hook = false; } } else { - RAW_LOG(INFO, "Replacing glibc malloc"); + if (VLOG_IS_ON(1)) { + RAW_LOG(INFO, "Replacing glibc malloc"); + } if (&malloc != &aos_malloc_hook) { has_malloc_hook = false; }