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

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

Re-log parts of btif/src/btif_sock_thread

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Change-Id: I455eba51f92a8185997fefc88fad4bfffc36cd0e
parent 839d3502
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -150,7 +150,6 @@ static void free_thread_slot(int h) {
}
void btsock_thread_init() {
  static int initialized;
  APPL_TRACE_DEBUG("in initialized:%d", initialized);
  if (!initialized) {
    initialized = 1;
    int h;
@@ -409,10 +408,9 @@ static int process_cmd_sock(int h) {
  OSI_NO_INTR(ret = recv(fd, &cmd, sizeof(cmd), MSG_WAITALL));

  if (ret != sizeof(cmd)) {
    APPL_TRACE_ERROR("recv cmd errno:%d", errno);
    LOG_ERROR("recv cmd errno:%d", errno);
    return false;
  }
  APPL_TRACE_DEBUG("cmd.id:%d", cmd.id);
  switch (cmd.id) {
    case CMD_ADD_FD:
      add_poll(h, cmd.fd, cmd.type, cmd.flags, cmd.user_id);