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

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

btm_history: Modernize classic inquiry scan entry

Bug: 188074901
Tag: #refactor
Test: gd/cert/run

Change-Id: I1930a0cc099893da5c88c43db516e84fe722a0ee
parent c246249a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -53,6 +53,10 @@

#include <base/logging.h>

namespace {
constexpr char kBtmLogTag[] = "SCAN";
}

extern tBTM_CB btm_cb;

extern void btm_inq_remote_name_timer_timeout(void* data);
@@ -432,7 +436,7 @@ void BTM_CancelInquiry(void) {
    return;
  }

  btm_cb.history_->Push("%-32s", "Inquiry scan stopped");
  BTM_LogHistory(kBtmLogTag, RawAddress::kEmpty, "Classic inquiry stopped");

  tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars;
  BTM_TRACE_API("BTM_CancelInquiry called");
@@ -514,7 +518,7 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,
    return BTM_WRONG_MODE;
  }

  btm_cb.history_->Push("%-32s", "Inquiry scan started");
  BTM_LogHistory(kBtmLogTag, RawAddress::kEmpty, "Classic inquiry started");

  /* Save the inquiry parameters to be used upon the completion of
   * setting/clearing the inquiry filter */