From bd6ca7b51ca626d0aa04c3fecbfeb1b32a132430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=95=9F=E5=BD=AC?= <935159042@qq.com> Date: Sat, 2 Mar 2024 14:41:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?TicketNo:#I958HQ=20Description:=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E7=BC=96=E8=AF=91arm64=E6=8A=A5=E9=94=99=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98=E3=80=82=20Signed?= =?UTF-8?q?-off-by:=20xuqibin=20<935159042@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/local_code_sign/src/local_code_sign_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 47b1001..5692392 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(LABEL, "ownerID len %{public}u should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); + LOG_ERROR(LABEL, "ownerID len %{public}lu should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); return CS_ERR_INVALID_OWNER_ID; } ByteBuffer digest; -- Gitee From 656fc45f43567a0696bb6181becfd17af1d3262e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=95=9F=E5=BD=AC?= <935159042@qq.com> Date: Sat, 2 Mar 2024 17:43:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?TicketNo:#I958HQ=20Description:=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E7=BC=96=E8=AF=91arm64=E6=8A=A5=E9=94=99=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98=E3=80=82=20Signed?= =?UTF-8?q?-off-by:=20xuqibin=20<935159042@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/local_code_sign/src/local_code_sign_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5692392..80d46a5 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(LABEL, "ownerID len %{public}lu should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); + LOG_ERROR(LABEL, "ownerID len %{public}zu should not exceed %{public}u", ownerID.length(), MAX_OWNER_ID_LEN); return CS_ERR_INVALID_OWNER_ID; } ByteBuffer digest; -- Gitee