From 0eeebde79ad032f2a692d6db46f6d6bfe324abef Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Mon, 16 Dec 2024 11:44:53 +0800 Subject: [PATCH] =?UTF-8?q?#issue:IBBHM1=20=E5=91=8A=E8=AD=A6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9A=E8=B6=85=E5=A4=A7=E5=87=BD=E6=95=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuezhou_yan --- src/create_pcid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/create_pcid.c b/src/create_pcid.c index 77ba9b0..da299fe 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -480,7 +480,7 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) freePcidJsonInfo.jsonRootObj = NULL; freePcidJsonInfo.sysCapObj = NULL; freePcidJsonInfo.flag = 0; - + ret = CheckFileAndGetFileContext(inputFile, &freePcidJsonInfo.contextBuffer, (uint32_t *)&contextBufLen); if (ret != 0) { return -1; @@ -495,8 +495,7 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) } /* system type */ - char *systemType = pcidMain->systemType == 0b001 ? "mini" : - (pcidMain->systemType == 0b010 ? "small" : + char *systemType = pcidMain->systemType == 0b001 ? "mini" :(pcidMain->systemType == 0b010 ? "small" : (pcidMain->systemType == 0b100 ? "standard" : NULL)); if (systemType == NULL) { PRINT_ERR("prase file failed, systemType is invaild, %u\n", pcidMain->systemType); @@ -524,7 +523,6 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) freePcidJsonInfo.strJson = cJSON_Print(freePcidJsonInfo.jsonRootObj); if (freePcidJsonInfo.strJson == NULL) { - PRINT_ERR("cJSON_Print failed\n"); return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_ROOT_OUT, -1); } -- Gitee