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

Commit 43e3b406 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Decouple audio_hearing_aid_hw_default logging from gd" am: e59c2640

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1736643

Change-Id: I1c0b1a6eef4dbd2523a7feac9f4b76a7e27e75ab
parents 176421f6 e59c2640
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -9,10 +9,12 @@ package {

cc_defaults {
    name: "audio_hearing_aid_hw_defaults",
    defaults: ["fluoride_defaults"],
    defaults: ["libchrome_support_defaults"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/include",
        "packages/modules/Bluetooth/system/types",
    ],
}

+11 −7
Original line number Diff line number Diff line
@@ -35,10 +35,10 @@

#include <hardware/audio.h>
#include <hardware/hardware.h>
#include <log/log.h>
#include <system/audio.h>

#include "osi/include/hash_map_utils.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "osi/include/socket_utils/sockets.h"

@@ -57,11 +57,15 @@
// sockets
#define WRITE_POLL_MS 20

#define FNLOG() LOG_VERBOSE("%s", __func__);
#define DEBUG(fmt, ...) LOG_VERBOSE("%s: " fmt, __func__, ##__VA_ARGS__)
#define INFO(fmt, ...) LOG_INFO("%s: " fmt, __func__, ##__VA_ARGS__)
#define WARN(fmt, ...) LOG_WARN("%s: " fmt, __func__, ##__VA_ARGS__)
#define ERROR(fmt, ...) LOG_ERROR("%s: " fmt, __func__, ##__VA_ARGS__)
#define FNLOG() ALOGV("%s:%d %s: ", __FILE__, __LINE__, __func__)
#define DEBUG(fmt, args...) \
  ALOGD("%s:%d %s: " fmt, __FILE__, __LINE__, __func__, ##args)
#define INFO(fmt, args...) \
  ALOGI("%s:%d %s: " fmt, __FILE__, __LINE__, __func__, ##args)
#define WARN(fmt, args...) \
  ALOGW("%s:%d %s: " fmt, __FILE__, __LINE__, __func__, ##args)
#define ERROR(fmt, args...) \
  ALOGE("%s:%d %s: " fmt, __FILE__, __LINE__, __func__, ##args)

#define ASSERTC(cond, msg, val)                                           \
  if (!(cond)) {                                                          \
@@ -166,7 +170,7 @@ struct ha_stream_in {
static void hash_map_utils_dump_string_keys_string_values(
    std::unordered_map<std::string, std::string>& map) {
  for (const auto& ptr : map) {
    LOG_INFO("key: '%s' value: '%s'\n", ptr.first.c_str(), ptr.second.c_str());
    INFO("key: '%s' value: '%s'\n", ptr.first.c_str(), ptr.second.c_str());
  }
}