Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03b35eef authored by Sonny Sasaka's avatar Sonny Sasaka Committed by Gerrit Code Review
Browse files

Merge "Make LOG_VERBOSE and LOG_DEBUG follow settings for non-Android"

parents 2e72f177 e21252a9
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -84,8 +84,18 @@ static_assert(LOG_TAG != nullptr, "LOG_TAG is null after header inclusion");
#define LOG_INFO(...)
#define LOG_WARN(...)
#else
#define LOG_VERBOSE(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_DEBUG(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_VERBOSE(fmt, args...)                                             \
  do {                                                                        \
    if (bluetooth::common::InitFlags::IsDebugLoggingEnabledForTag(LOG_TAG)) { \
      LOGWRAPPER(fmt, ##args);                                                \
    }                                                                         \
  } while (false)
#define LOG_DEBUG(fmt, args...)                                               \
  do {                                                                        \
    if (bluetooth::common::InitFlags::IsDebugLoggingEnabledForTag(LOG_TAG)) { \
      LOGWRAPPER(fmt, ##args);                                                \
    }                                                                         \
  } while (false)
#define LOG_INFO(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_WARN(...) LOGWRAPPER(__VA_ARGS__)
#endif /* FUZZ_TARGET */