mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
modify error log print.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I7ef3c446dd00d29a01d9406d23622af7d31b6447
This commit is contained in:
@@ -93,7 +93,7 @@ bool EncodeOsSyscap(char output[128])
|
||||
|
||||
ret = GetFileContext(&contextBuffer, &bufferLen);
|
||||
if (ret != 0) {
|
||||
PRINT_ERR("GetFileContext failed, input file : rk3568.sc\n");
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/PCID.sc\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ bool DecodeOsSyscap(char input[128], char (**output)[128], int *outputCnt)
|
||||
|
||||
*outputCnt = countOfSyscap;
|
||||
char (*strSyscap)[MAX_SYSCAP_STR_LEN] = NULL;
|
||||
strSyscap= (char (*)[MAX_SYSCAP_STR_LEN])malloc(countOfSyscap * MAX_SYSCAP_STR_LEN);
|
||||
strSyscap = (char (*)[MAX_SYSCAP_STR_LEN])malloc(countOfSyscap * MAX_SYSCAP_STR_LEN);
|
||||
if (strSyscap == NULL) {
|
||||
PRINT_ERR("malloc failed.");
|
||||
*outputCnt = 0;
|
||||
|
||||
Reference in New Issue
Block a user