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

Commit 7b8db98c authored by Pomai Ahlo's avatar Pomai Ahlo Committed by Gerrit Code Review
Browse files

Merge "btif_sock_rfc: log rfc_port_handle before crash" into main

parents 373166f9 fa36ffd6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -257,6 +257,12 @@ static rfc_slot_t* create_srv_accept_rfc_slot(rfc_slot_t* srv_rs,
  srv_rs->rfc_handle = new_listen_handle;
  srv_rs->rfc_port_handle = BTA_JvRfcommGetPortHdl(new_listen_handle);

  if (accept_rs->rfc_port_handle == srv_rs->rfc_port_handle) {
    log::error(
        "accept_rs->rfc_port_handle == srv_rs->rfc_port_handle, "
        "rfc_port_handle={}",
        accept_rs->rfc_port_handle);
  }
  log::assert_that(
      accept_rs->rfc_port_handle != srv_rs->rfc_port_handle,
      "assert failed: accept_rs->rfc_port_handle != srv_rs->rfc_port_handle");