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

Commit d5d162fd authored by Chris Manton's avatar Chris Manton
Browse files

Re-log btif/src/btif_profile_queue::queue_int_add

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I3c6f66f8bf3f02a6ad5d9029f8ff77aebb50a625
parent 7ed5d552
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -99,14 +99,13 @@ static void queue_int_add(uint16_t uuid, const RawAddress& bda,
  ConnectNode param(bda, uuid, connect_cb);
  for (const auto& node : connect_queue) {
    if (node.uuid() == param.uuid() && node.address() == param.address()) {
      LOG_ERROR("%s: dropping duplicate connection request: %s", __func__,
      LOG_ERROR("Dropping duplicate profile connection request:%s",
                param.ToString().c_str());
      return;
    }
  }

  LOG_INFO("%s: adding connection request: %s", __func__,
           param.ToString().c_str());
  LOG_INFO("Queueing profile connection request:%s", param.ToString().c_str());
  connect_queue.push_back(param);

  btif_queue_connect_next();