diff --git a/services/distributeddataservice/service/object/src/object_data_listener.cpp b/services/distributeddataservice/service/object/src/object_data_listener.cpp index ad10e0391707a9f11c5a9bb34206d42b7aaec146..141a58580e9e9e5259e01002e13e9fd425a0f279 100644 --- a/services/distributeddataservice/service/object/src/object_data_listener.cpp +++ b/services/distributeddataservice/service/object/src/object_data_listener.cpp @@ -13,6 +13,7 @@ * limitations under the License. */ +#include #define LOG_TAG "ObjectDataListener" #include "object_data_listener.h" @@ -84,14 +85,14 @@ int32_t ObjectAssetsRecvListener::OnRecvProgress( const std::string &srcNetworkId, const sptr &assetObj, uint64_t totalBytes, uint64_t processBytes) { if (assetObj == nullptr || totalBytes == 0) { - ZLOGE("OnRecvProgress error! srcNetworkId:%{public}s, totalBytes: %{public}llu", + ZLOGE("OnRecvProgress error! srcNetworkId:%{public}s, totalBytes: %{public}" PRIu64, DistributedData::Anonymous::Change(srcNetworkId).c_str(), totalBytes); return OBJECT_INNER_ERROR; } auto objectKey = assetObj->dstBundleName_ + assetObj->sessionId_; - ZLOGI("srcNetworkId: %{public}s, objectKey:%{public}s, totalBytes: %{public}llu," - "processBytes: %{public}llu.", + ZLOGI("srcNetworkId: %{public}s, objectKey:%{public}s, totalBytes: %{public}" PRIu64 + ", processBytes: %{public}" PRIu64 ".", DistributedData::Anonymous::Change(srcNetworkId).c_str(), DistributedData::Anonymous::Change(objectKey).c_str(), totalBytes, processBytes);