diff --git a/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_ipc_callback.cpp b/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_ipc_callback.cpp index 226efb4bfb940921a469e0c037c81ee386937ff8..b3e7983501739a11f97c17abd48aa3b8f5c827db 100644 --- a/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_ipc_callback.cpp +++ b/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_ipc_callback.cpp @@ -29,7 +29,7 @@ int32_t DAudioSinkIpcCallback::OnNotifyResourceInfo(const ResourceEventType &typ const std::string &networkId, bool &isSensitive, bool &isSameAccount) { DHLOGI("On notify the resource info, subType: %s, networkId: %s, isSensitive: %d, isSameAccount: %d", - subType.c_str(), networkId.c_str(), isSensitive, isSameAccount); + subType.c_str(), GetAnonyString(networkId).c_str(), isSensitive, isSameAccount); int32_t ret = DH_SUCCESS; std::lock_guard resourceLck(privacyResMtx_); diff --git a/services/audiomanager/managersink/src/daudio_sink_manager.cpp b/services/audiomanager/managersink/src/daudio_sink_manager.cpp index b180b0f2e6ed57b833b070140a9354c7b242d288..d90ad8252fd5b93364446bce43c0bab6f6d702ee 100644 --- a/services/audiomanager/managersink/src/daudio_sink_manager.cpp +++ b/services/audiomanager/managersink/src/daudio_sink_manager.cpp @@ -397,7 +397,8 @@ bool DAudioSinkManager::CheckDeviceSecurityLevel(const std::string &srcDeviceId, DHLOGE("dst udid is empty"); return false; } - DHLOGI("CheckDeviceSecurityLevel srcUdid %s, dstUdid %s.", srcUdid.c_str(), dstUdid.c_str()); + DHLOGI("CheckDeviceSecurityLevel srcUdid %s, dstUdid %s.", GetAnonyString(srcUdid).c_str(), + GetAnonyString(dstUdid).c_str()); int32_t srcDeviceSecurityLevel = GetDeviceSecurityLevel(srcUdid); int32_t dstDeviceSecurityLevel = GetDeviceSecurityLevel(dstUdid); DHLOGI("SrcDeviceSecurityLevel, level is %d", srcDeviceSecurityLevel); diff --git a/services/audiomanager/managersource/src/daudio_source_manager.cpp b/services/audiomanager/managersource/src/daudio_source_manager.cpp index 1cefdd98e670fbf33129c616cf7849bb220cffe6..c8c01a8e42246636a09604870c8433b19f07769b 100644 --- a/services/audiomanager/managersource/src/daudio_source_manager.cpp +++ b/services/audiomanager/managersource/src/daudio_source_manager.cpp @@ -391,7 +391,7 @@ int32_t DAudioSourceManager::CreateAudioDevice(const std::string &devId) void DAudioSourceManager::DeleteAudioDevice(const std::string &devId, const std::string &dhId) { - DHLOGI("Delete audio device, devId = %s, dhId = %s.", devId.c_str(), dhId.c_str()); + DHLOGI("Delete audio device, devId = %s, dhId = %s.", GetAnonyString(devId).c_str(), dhId.c_str()); { std::lock_guard lock(devMapMtx_); audioDevMap_[devId].ports.erase(dhId);