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

Commit 8c208c8b authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz
Browse files

avdt: enable verbose logging for scb and ccb

Bug: 329809288
Flag: EXEMPT - log only
Test: mmm packages/modules/Bluetooth
Change-Id: I4497bf8a46ba4e25d1c68e59ca8ae63bf12ce95c
parent 46678c1d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -365,10 +365,8 @@ void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event, tAVDT_CCB_EVT* p_data) {
  uint8_t action;
  int i;

#if (AVDT_DEBUG == TRUE)
  log::verbose("CCB ccb={} event={} state={} p_ccb={}", avdt_ccb_to_idx(p_ccb),
               avdt_ccb_evt_str[event], avdt_ccb_st_str[p_ccb->state], fmt::ptr(p_ccb));
#endif

  /* look up the state table for the current state */
  state_table = avdt_ccb_st_tbl[p_ccb->state];
+0 −4
Original line number Diff line number Diff line
@@ -41,10 +41,6 @@
#include "stack/include/l2cap_interface.h"
#include "types/raw_address.h"

#ifndef AVDT_DEBUG
#define AVDT_DEBUG FALSE
#endif

/*****************************************************************************
 * constants
 ****************************************************************************/
+0 −6
Original line number Diff line number Diff line
@@ -41,8 +41,6 @@ using namespace bluetooth;
/*****************************************************************************
 * state machine constants and types
 ****************************************************************************/
#if (AVDT_DEBUG == TRUE)

/* verbose state strings for trace */
const char* const avdt_scb_st_str[] = {"SCB_IDLE_ST", "SCB_CONF_ST",   "SCB_OPENING_ST",
                                       "SCB_OPEN_ST", "SCB_STREAM_ST", "SCB_CLOSING_ST"};
@@ -66,8 +64,6 @@ const char* const avdt_scb_evt_str[] = {
        "TC_TOUT_EVT",           "TC_OPEN_EVT",           "TC_CLOSE_EVT",
        "TC_CONG_EVT",           "TC_DATA_EVT",           "CC_CLOSE_EVT"};

#endif

/* action function list */
const tAVDT_SCB_ACTION avdt_scb_action[] = {avdt_scb_hdl_abort_cmd,
                                            avdt_scb_hdl_abort_rsp,
@@ -763,11 +759,9 @@ void avdt_scb_event(AvdtpScb* p_scb, uint8_t event, tAVDT_SCB_EVT* p_data) {
  tAVDT_SCB_ST_TBL state_table;
  uint8_t action;

#if (AVDT_DEBUG == TRUE)
  log::verbose("SCB hdl={} event={}/{} state={} p_avdt_scb={} scb_index={}", avdt_scb_to_hdl(p_scb),
               event, avdt_scb_evt_str[event], avdt_scb_st_str[p_scb->state], fmt::ptr(p_scb),
               p_scb->stream_config.scb_index);
#endif

  /* Check that we only send AVDT_SCB_API_WRITE_REQ_EVT to the active stream
   * device */