diff --git a/services/distributedhardwarefwkservice/src/componentloader/component_loader.cpp b/services/distributedhardwarefwkservice/src/componentloader/component_loader.cpp index 8566f51b38e2bb50cb85d346d4c4cab534e4186e..bd763d75949a2f4b463104dfd24ac998030f2de6 100644 --- a/services/distributedhardwarefwkservice/src/componentloader/component_loader.cpp +++ b/services/distributedhardwarefwkservice/src/componentloader/component_loader.cpp @@ -430,7 +430,7 @@ std::string ComponentLoader::Readfile(const std::string &filePath) std::string sAll = ""; infile.open(filePath); if (!infile.is_open()) { - DHLOGE("filePath: %{public}s Readfile fail", filePath.c_str()); + DHLOGE("filePath: %{public}s Readfile fail", GetAnonyString(filePath).c_str()); return sAll; }