From 4225799c848d8fce6b08fa0432f6a626d7a09bd7 Mon Sep 17 00:00:00 2001 From: yudechen Date: Mon, 9 May 2022 17:39:14 +0800 Subject: [PATCH] modify error log print. Signed-off-by: yudechen Change-Id: I7ef3c446dd00d29a01d9406d23622af7d31b6447 --- interfaces/inner_api/syscap_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/inner_api/syscap_interface.c b/interfaces/inner_api/syscap_interface.c index e426386..d53dcc2 100644 --- a/interfaces/inner_api/syscap_interface.c +++ b/interfaces/inner_api/syscap_interface.c @@ -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;