修改通用告警规范

Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
liutuantuan
2024-07-15 21:08:09 +08:00
parent 1f2d73f922
commit c219337456
5 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -202,7 +202,7 @@ int32_t GetPriSyscapLen(uint32_t privateCapSize, cJSON *jsonPriSyscapObj, uint16
return -1;
}
*len += (uint16_t)strlen(strchr(jsonArrayItem->valuestring, '.') + 1);
(*len)++; // for separator ','
(*len)++; // for separator ','
}
if ((*len + 1) > PRIVATE_SYSCAP_SIZE) {
PRINT_ERR("context of \"pri\" array is too many.\n");
@@ -347,7 +347,7 @@ int32_t GetOsSyscap(PCIDMain *pcidMain, cJSON *sysCapObject)
return 0;
}
static int32_t GetPriSyscapResult(cJSON* capVectorPtr, int32_t ret)
static int32_t GetPriSyscapResult(cJSON *capVectorPtr, int32_t ret)
{
cJSON_Delete(capVectorPtr);
return ret;