diff --git a/services/distributed/src/soft_bus/distributed_unlock_listener_oper_service.cpp b/services/distributed/src/soft_bus/distributed_unlock_listener_oper_service.cpp index db14ca79487bb244271eac921b1a69ab01d3759e..a72371bd4168c27cc1e423e9546aa742310bdeba 100644 --- a/services/distributed/src/soft_bus/distributed_unlock_listener_oper_service.cpp +++ b/services/distributed/src/soft_bus/distributed_unlock_listener_oper_service.cpp @@ -105,7 +105,7 @@ void UnlockListenerOperService::RemoveOperationResponse(const std::string& hashC if (iterTimer->second == NotificationConstant::INVALID_TIMER_ID) { return; } - ANS_LOGI("Operation timer erase %{public}s %{public}llu", hashCode.c_str(), iterTimer->second); + ANS_LOGI("Operation timer erase %{public}s %{public}" PRIu64, hashCode.c_str(), iterTimer->second); MiscServices::TimeServiceClient::GetInstance()->StopTimer(iterTimer->second); MiscServices::TimeServiceClient::GetInstance()->DestroyTimer(iterTimer->second); timerMap_.erase(iterTimer); diff --git a/services/distributed/src/tlv_box/tlv_box.cpp b/services/distributed/src/tlv_box/tlv_box.cpp index 07179af2f50a763a6be6d2c744e4bb2f67812b06..454e23037cced3c2d77f9854d78ad358637c96fa 100644 --- a/services/distributed/src/tlv_box/tlv_box.cpp +++ b/services/distributed/src/tlv_box/tlv_box.cpp @@ -292,7 +292,7 @@ bool TlvBox::Serialize(bool addCheck) uint32_t calCrc = crc32(crc32(0L, Z_NULL, 0), (const Bytef*)byteBuffer_, offset); uint32_t calValue = htonl(calCrc); (void)memcpy_s(byteBuffer_ + offset, sizeof(uint32_t), &calValue, sizeof(uint32_t)); - ANS_LOGI("Box Serialize crc32 %{public}zu %{public}zu.", offset + sizeof(uint32_t), calCrc); + ANS_LOGI("Box Serialize crc32 %{public}d %{public}d.", (int32_t)(offset + sizeof(uint32_t)), (int32_t)(calCrc)); } else { ANS_LOGI("Box Serialize crc32 %{public}d.", offset); }