From 6fe914fc884b97ff5bd3f32186370d48064f1196 Mon Sep 17 00:00:00 2001 From: haixiangw Date: Thu, 14 Nov 2024 18:29:57 -0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9log=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haixiangw --- .../main/core/src/cert_manager_auth_list_mgr.c | 4 ++-- .../main/core/src/cert_manager_updateflag.c | 4 ++-- .../main/core/src/cm_event_process.c | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_auth_list_mgr.c b/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_auth_list_mgr.c index c830a04..02e6237 100755 --- a/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_auth_list_mgr.c +++ b/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_auth_list_mgr.c @@ -27,7 +27,7 @@ #define MAX_PATH_LEN 512 #define MAX_AUTH_COUNT 256 -#define AUTH_LIST_VERSON 0 +#define AUTH_LIST_VERSION 0 static int32_t CheckAuthListFileSizeValid(const struct CmBlob *originList, uint32_t *authCount) { @@ -219,7 +219,7 @@ static int32_t RefreshAuthListBuf(const char *path, const char *fileName, uint32 static int32_t InitAuthListBuf(uint32_t uid, struct CmBlob *authList) { uint32_t count = 1; - uint32_t version = AUTH_LIST_VERSON; + uint32_t version = AUTH_LIST_VERSION; uint32_t size = sizeof(version) + sizeof(count) + sizeof(uid) * count; uint8_t *data = (uint8_t *)CMMalloc(size); if (data == NULL) { diff --git a/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_updateflag.c b/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_updateflag.c index f5c6853..73819fe 100644 --- a/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_updateflag.c +++ b/services/cert_manager_standard/cert_manager_engine/main/core/src/cert_manager_updateflag.c @@ -59,7 +59,7 @@ static int32_t GetUpdateFlag(uint8_t *updateFlag) uint8_t updateFlagTmp = false; if (updateFlag == NULL) { - CM_LOG_E("input params is invaild"); + CM_LOG_E("input params is invalid"); return CMR_ERROR_INVALID_ARGUMENT; } @@ -109,7 +109,7 @@ int32_t IsCertNeedBackup(uint32_t userId, uint32_t uid, const struct CmBlob *cer char configPath[CERT_MAX_PATH_LEN] = { 0 }; if (needUpdate == NULL) { - CM_LOG_E("input params is invaild"); + CM_LOG_E("input params is invalid"); return CMR_ERROR_INVALID_ARGUMENT; } diff --git a/services/cert_manager_standard/cert_manager_engine/main/core/src/cm_event_process.c b/services/cert_manager_standard/cert_manager_engine/main/core/src/cm_event_process.c index 401f1f2..3e9a144 100644 --- a/services/cert_manager_standard/cert_manager_engine/main/core/src/cm_event_process.c +++ b/services/cert_manager_standard/cert_manager_engine/main/core/src/cm_event_process.c @@ -341,7 +341,7 @@ static int32_t CmTraversalDir(const struct CmContext *context, const char *path, static int32_t CmTraversalBackupUidDir(const char *certConfigUidDirPath) { if (certConfigUidDirPath == NULL) { - CM_LOG_E("input params is invaild"); + CM_LOG_E("input params is invalid"); return CMR_ERROR_INVALID_ARGUMENT; } @@ -373,7 +373,7 @@ static int32_t CmTraversalBackupUidDir(const char *certConfigUidDirPath) static int32_t CmTraversalBackupUserIdDir(const char *certConfigUserIdDirPath) { if (certConfigUserIdDirPath == NULL) { - CM_LOG_E("input params is invaild"); + CM_LOG_E("input params is invalid"); return CMR_ERROR_INVALID_ARGUMENT; } @@ -478,7 +478,7 @@ int32_t CmDeleteProcessInfo(const struct CmContext *context) /* Delete user ca */ ret = CmTraversalDir(context, USER_CA_STORE, CM_USER_TRUSTED_STORE); if (ret != CM_SUCCESS) { - CM_LOG_E("CmDeleteUserCa faild"); + CM_LOG_E("CmDeleteUserCa failed"); } /* Delete user ca backup and config */ @@ -491,19 +491,19 @@ int32_t CmDeleteProcessInfo(const struct CmContext *context) /* Delete private credentail */ ret = CmTraversalDir(context, APP_CA_STORE, CM_PRI_CREDENTIAL_STORE); if (ret != CM_SUCCESS) { - CM_LOG_E("CmDeletePrivateCredential faild"); + CM_LOG_E("CmDeletePrivateCredential failed"); } /* Delete public credentail */ ret = CmTraversalDir(context, CREDNTIAL_STORE, CM_CREDENTIAL_STORE); if (ret != CM_SUCCESS) { - CM_LOG_E("CmDeletePublicCredential faild"); + CM_LOG_E("CmDeletePublicCredential failed"); } /* Delete system credentail*/ ret = CmTraversalDir(context, SYS_CREDNTIAL_STORE, CM_SYS_CREDENTIAL_STORE); if (ret != CM_SUCCESS) { - CM_LOG_E("CmDeletePublicCredential faild"); + CM_LOG_E("CmDeletePublicCredential failed"); } return ret;