From 12490a5eaf9bf0c280895fcb345e270b8d5af1ee Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Tue, 8 Nov 2022 11:51:58 +0900 Subject: [PATCH] universal7885: aidl-support: Disable verbose logs by def --- .../apps/aidl-support/include/LogFormat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/universal7885-common/apps/aidl-support/include/LogFormat.h b/universal7885-common/apps/aidl-support/include/LogFormat.h index e772bb3..7c22422 100644 --- a/universal7885-common/apps/aidl-support/include/LogFormat.h +++ b/universal7885-common/apps/aidl-support/include/LogFormat.h @@ -27,6 +27,18 @@ std::string _make_str(const std::string& filename, int line, const std::string& return ss.str(); } +#ifndef __NEED_VERBOSE_LOG__ + +#undef LOG_I +#undef LOG_D +#undef LOG_V + +#define LOG_I(...) do {} while(0) +#define LOG_D(...) do {} while(0) +#define LOG_V(...) do {} while(0) + +#endif + #else #warning LOG_TAG is not defined, disabling logging.