From 3c19692b009e276eff69f8929931292ad82a1f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=A3=AB=E8=BE=B0?= Date: Mon, 1 Sep 2025 17:23:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[release]commercial=20log=20print=20Signed-?= =?UTF-8?q?off-by:=20=E9=A9=AC=E5=A3=AB=E8=BE=B0=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/inner/src/bluetooth_hfp_ag.cpp | 6 +++--- frameworks/inner/src/bluetooth_hfp_hf.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/inner/src/bluetooth_hfp_ag.cpp b/frameworks/inner/src/bluetooth_hfp_ag.cpp index de6b0782..e2d61f06 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 bd462290..a7faffb2 100644 --- a/frameworks/inner/src/bluetooth_hfp_hf.cpp +++ b/frameworks/inner/src/bluetooth_hfp_hf.cpp @@ -54,7 +54,7 @@ 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); -- Gitee From 9c4d4dc25652b0f2dc9525c41dfebbab9741a506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=A3=AB=E8=BE=B0?= Date: Mon, 1 Sep 2025 11:09:58 +0000 Subject: [PATCH 2/2] update frameworks/inner/src/bluetooth_hfp_hf.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马士辰 --- frameworks/inner/src/bluetooth_hfp_hf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/inner/src/bluetooth_hfp_hf.cpp b/frameworks/inner/src/bluetooth_hfp_hf.cpp index a7faffb2..07972470 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 { - HILOG_COMM_INFO("OnScoStateChanged: %{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); -- Gitee