diff --git a/services/local_code_sign/src/local_code_sign_service.cpp b/services/local_code_sign/src/local_code_sign_service.cpp index 8c52d5849360368816f55a629520cb78caae06a6..09eeffae84650941a93be5596bb95dade3f37a8b 100644 --- a/services/local_code_sign/src/local_code_sign_service.cpp +++ b/services/local_code_sign/src/local_code_sign_service.cpp @@ -118,7 +118,7 @@ int32_t LocalCodeSignService::SignLocalCode(const std::string &ownerID, const st ByteBuffer &signature) { if (ownerID.length() > MAX_OWNER_ID_LEN) { - LOG_ERROR("ownerID len %{public}u should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); + LOG_ERROR("ownerID len %{public}zu should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); return CS_ERR_INVALID_OWNER_ID; } ByteBuffer digest;