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

Commit af4967aa authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

btm_history: Modernize classic inquiry scan entry am: c9d5aebd

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1883254

Change-Id: Ib519b14c2f9f84312212cb6633f55bef24084981
parents 49487410 c9d5aebd
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 */