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

Commit 6dd56f42 authored by Pomai Ahlo's avatar Pomai Ahlo
Browse files

Add log to btif connection logger

Add a log for ease of debugging.  There is already a log before
each btif_sock_connection_logger call, so only verbose level is needed.

Bug: 295023364
Test: m com.android.btservices
Flag: EXEMPT logging change only
Change-Id: I08eb5d14d2f73de8bd61da4e03d37a599c65a50a
parent 3bb63109
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ static android::bluetooth::SocketRoleEnum toSocketRoleEnum(int role);
void btif_sock_connection_logger(const RawAddress& address, int port, int type, int state, int role,
                                 int uid, int server_port, int64_t tx_bytes, int64_t rx_bytes,
                                 const char* server_name) {
  log::verbose("bd_addr: {}, port: {}, role: {}, state: {}", address, port, role, state);

  uint8_t index = logger_index++ % SOCK_LOGGER_SIZE_MAX;

  connection_logger[index] = {