diff --git a/frameworks/inner/src/bluetooth_hfp_ag.cpp b/frameworks/inner/src/bluetooth_hfp_ag.cpp index de6b0782b18759dde72daeb664834e502140be2a..e2d61f06fe6cdd87db5a0a23a57a4095506bac69 100644 --- a/frameworks/inner/src/bluetooth_hfp_ag.cpp +++ b/frameworks/inner/src/bluetooth_hfp_ag.cpp @@ -239,7 +239,7 @@ struct HandsFreeAudioGateway::impl { void PhoneStateChanged(BluetoothPhoneState &phoneState) { - HILOGI("numActive: %{public}d, numHeld: %{public}d, callState: %{public}d, type: %{public}d", + HILOG_COMM_INFO("numActive: %{public}d, numHeld: %{public}d, callState: %{public}d, type: %{public}d", phoneState.GetActiveNum(), phoneState.GetHeldNum(), phoneState.GetCallState(), phoneState.GetCallType()); sptr proxy = GetRemoteProxy(PROFILE_HFP_AG); CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is null"); @@ -610,7 +610,7 @@ void HandsFreeAudioGateway::ClccResponse( bool HandsFreeAudioGateway::OpenVoiceRecognition(const BluetoothRemoteDevice &device) { - HILOGI("enter, device: %{public}s", GET_ENCRYPT_ADDR(device)); + HILOG_COMM_INFO("OpenVoiceRecognition: %{public}s", GET_ENCRYPT_ADDR(device)); if (!IS_BT_ENABLED()) { HILOGE("bluetooth is off."); return false; @@ -624,7 +624,7 @@ bool HandsFreeAudioGateway::OpenVoiceRecognition(const BluetoothRemoteDevice &de bool HandsFreeAudioGateway::CloseVoiceRecognition(const BluetoothRemoteDevice &device) { - HILOGI("enter, device: %{public}s", GET_ENCRYPT_ADDR(device)); + HILOG_COMM_INFO("CloseVoiceRecognition: %{public}s", GET_ENCRYPT_ADDR(device)); if (!IS_BT_ENABLED()) { HILOGE("bluetooth is off."); return false; diff --git a/frameworks/inner/src/bluetooth_hfp_hf.cpp b/frameworks/inner/src/bluetooth_hfp_hf.cpp index bd462290fa3e188f4f1563e0a37b5b6e491a9fdd..07972470bd7c6de31d84ab1f8e4c1d33a1da8aee 100644 --- a/frameworks/inner/src/bluetooth_hfp_hf.cpp +++ b/frameworks/inner/src/bluetooth_hfp_hf.cpp @@ -54,7 +54,8 @@ public: void OnScoStateChanged(const BluetoothRawAddress &device, int32_t state) override { - HILOGI("enter, device: %{public}s, state: %{public}d", GetEncryptAddr((device).GetAddress()).c_str(), state); + HILOG_COMM_INFO("OnScoStateChanged: %{public}s, state: %{public}d", + GetEncryptAddr((device).GetAddress()).c_str(), state); BluetoothRemoteDevice remoteDevice(device.GetAddress(), 0); observers_.ForEach([remoteDevice, state](std::shared_ptr observer) { observer->OnScoStateChanged(remoteDevice, state);