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

Commit 2ec46359 authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

Merge "gd: Fix compilation issues caused by init flags" into main

parents 411466c3 152db314
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -523,6 +523,7 @@ cc_test {
    static_libs: [
        "libbluetooth-types",
        "libbt_shim_bridge",
        "libbt_shim_ffi",
        "libchrome",
        "libcom.android.sysprop.bluetooth",
        "libosi",
+2 −12
Original line number Diff line number Diff line
@@ -163,18 +163,8 @@ static_assert(LOG_TAG != nullptr, "LOG_TAG should never be NULL");
        ##args);                                                                                                    \
  } while (false)

#define LOG_VERBOSE_INT(fmt, args...)                                                  \
  do {                                                                                 \
    if (bluetooth::common::InitFlags::GetLogLevelForTag(LOG_TAG) >= LOG_TAG_VERBOSE) { \
      LOGWRAPPER(fmt, ##args);                                                         \
    }                                                                                  \
  } while (false)
#define LOG_DEBUG_INT(fmt, args...)                                                  \
  do {                                                                               \
    if (bluetooth::common::InitFlags::GetLogLevelForTag(LOG_TAG) >= LOG_TAG_DEBUG) { \
      LOGWRAPPER(fmt, ##args);                                                       \
    }                                                                                \
  } while (false)
#define LOG_VERBOSE_INT(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_DEBUG_INT(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_INFO_INT(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_WARN_INT(...) LOGWRAPPER(__VA_ARGS__)
#define LOG_ERROR_INT(...) LOGWRAPPER(__VA_ARGS__)