diff --git a/samgr_server/source/samgr_server_rpc.c b/samgr_server/source/samgr_server_rpc.c index 68d2a802a6b00bb364b8d92722820d14a2f10954..089b9f796adbae467e88d80c59444e2cf64db01f 100755 --- a/samgr_server/source/samgr_server_rpc.c +++ b/samgr_server/source/samgr_server_rpc.c @@ -221,7 +221,7 @@ static BOOL MessageHandle(Service *service, Request *request) static TaskConfig GetTaskConfig(Service *service) { (void)service; - TaskConfig config = {LEVEL_HIGH, PRI_BUTT - 1, 0x4000, 20, SINGLE_TASK}; // Cannot use PRI_BUTT directly, so minus 1 + TaskConfig config = {LEVEL_HIGH, PRI_BUTT - 1, 0x4000, 20, SINGLE_TASK}; // PRI_BUTT cannot be used directly, so 1 is deducted return config; } @@ -302,7 +302,7 @@ static int32 ProcPutFeature(SamgrServer *server, const void *origin, IpcIo *req, int index = SASTORA_FindHandleByUidPid(&server->store, uid, pid, &handle); if (index == INVALID_INDEX) { MUTEX_Unlock(server->mtx); - HILOG_ERROR(HILOG_MODULE_SAMGR, "Endpoint[%d] is not register", pid); + HILOG_ERROR(HILOG_MODULE_SAMGR, "Endpoint[%d] is not registered", pid); WriteInt32(reply, EC_NOSERVICE); return EC_NOSERVICE; } @@ -322,7 +322,7 @@ static int32 ProcPutFeature(SamgrServer *server, const void *origin, IpcIo *req, if (ret != EC_SUCCESS || policy == NULL) { MUTEX_Unlock(server->mtx); SAMGR_Free(policy); - HILOG_DEBUG(HILOG_MODULE_SAMGR, "Remote Get Communication Strategy<%s, %s> No Permission<%d>!", + HILOG_DEBUG(HILOG_MODULE_SAMGR, "Remote get communication strategy<%s, %s> No permission<%d>!", service, feature, ret); WriteInt32(reply, EC_PERMISSION); return EC_PERMISSION; @@ -400,7 +400,7 @@ static int32 ProcGetFeature(SamgrServer *server, const void *origin, IpcIo *req, *identity = SASTORA_Find(&server->store, service, feature); if (identity->handle == INVALID_INDEX) { MUTEX_Unlock(server->mtx); - HILOG_DEBUG(HILOG_MODULE_SAMGR, "Cannot Find Feature<%s, %s> id<%d, %d> ret:%d", + HILOG_DEBUG(HILOG_MODULE_SAMGR, "Cannot find feature<%s, %s> id<%d, %d> ret:%d", service, feature, identity->handle, identity->token, EC_NOSERVICE); return EC_NOSERVICE; } @@ -546,9 +546,9 @@ void ProcGetAllSysCap(SamgrServer *server, IpcIo *req, IpcIo *reply) HILOG_DEBUG(HILOG_MODULE_SAMGR, "ProcGetAllSysCap replyNum: %d, size: %d, startIdx: %u, nextRequestIdx: %d", replyNum, size, startIdx, nextRequestIdx); WriteInt32(reply, EC_SUCCESS); - // indicate is the last reply + // indication of the last reply WriteBool(reply, nextRequestIdx == size); - // indicate is the next start idx + // indication of the next start idx WriteUint32(reply, nextRequestIdx); WriteUint32(reply, replyNum); int32 cnt = 0;