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

Commit 2134bb66 authored by Sanket Agarwal's avatar Sanket Agarwal Committed by Andre Eisenbach
Browse files

HF CLIENT BTA: Reduce logging for non-allocated blocks

Bug: b/33552136
Test: adb shell dumpsys bluetooth_manager
Change-Id: I3cb6c28bffe6b335cf82cac63dc78ce4957d78f4
parent 98684057
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -930,13 +930,13 @@ void bta_hf_client_dump_statistics(int fd) {
  // We dump statistics for all control blocks
  for (int i = 0; i < HF_CLIENT_MAX_DEVICES; i++) {
    tBTA_HF_CLIENT_CB* client_cb = &bta_hf_client_cb_arr.cb[i];
    dprintf(fd, "Contol block #%d\n", i + 1);

    if (!client_cb->is_allocated) {
      dprintf(fd, "NOT ALLOCATED\n");
      // Skip the blocks which are not allocated
      continue;
    }

    dprintf(fd, "  Control block #%d\n", i + 1);

    // Device name
    dprintf(fd, "    Peer Device: %02x:%02x:%02x:%02x:%02x:%02x\n",
            client_cb->peer_addr[0], client_cb->peer_addr[1],