OSDN Git Service

btm_loghistory: HeadsetInterface::PhoneStateChange
authorChris Manton <cmanton@google.com>
Thu, 17 Dec 2020 22:38:49 +0000 (14:38 -0800)
committerChris Manton <cmanton@google.com>
Thu, 7 Jan 2021 20:12:37 +0000 (12:12 -0800)
Towards loggable code

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

Change-Id: I3aee041f42df8446ee6853f2a6c9ee356c808b27

btif/src/btif_hf.cc

index cf29a01..f31719d 100644 (file)
@@ -1149,7 +1149,7 @@ bt_status_t HeadsetInterface::PhoneStateChange(
   /* if all indicators are 0, send end call and return */
   if (num_active == 0 && num_held == 0 &&
       call_setup_state == BTHF_CALL_STATE_IDLE) {
-    VLOG(1) << __func__ << ": call ended";
+    BTM_LogHistory("HFP", raw_address, "Call Ended");
     BTA_AgResult(control_block.handle, BTA_AG_END_CALL_RES,
                  tBTA_AG_RES_DATA::kEmpty);
     /* if held call was present, reset that as well */