diff --git a/services/distributeddataservice/service/backup/src/backup_manager.cpp b/services/distributeddataservice/service/backup/src/backup_manager.cpp index d957de357f8f2240aa791dd12505dd88bf7467ee..bec2b5d13d352cc0cb8114ac6116605d3196e80f 100644 --- a/services/distributeddataservice/service/backup/src/backup_manager.cpp +++ b/services/distributeddataservice/service/backup/src/backup_manager.cpp @@ -27,6 +27,7 @@ #include "log_print.h" #include "metadata/meta_data_manager.h" #include "types.h" +#include "utils/anonymous.h" namespace OHOS::DistributedData { namespace { constexpr const int COPY_SIZE = 1024; @@ -325,7 +326,7 @@ bool BackupManager::RemoveFile(const std::string &path) return true; } if (remove(path.c_str()) != 0) { - ZLOGE("remove error:%{public}d, path:%{public}s", errno, path.c_str()); + ZLOGE("remove error:%{public}d, path:%{public}s", errno, Anonymous::Change(path).c_str()); return false; } return true;