From 86194762a1f8d4cbe36620b5de4aaf6b52ac2b66 Mon Sep 17 00:00:00 2001 From: laokz Date: Mon, 30 Nov 2020 15:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3liteipc=E4=B8=A4=E5=A4=84typo?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/extended/liteipc/hm_liteipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/extended/liteipc/hm_liteipc.c b/kernel/extended/liteipc/hm_liteipc.c index 9339ab0b..2bddc620 100644 --- a/kernel/extended/liteipc/hm_liteipc.c +++ b/kernel/extended/liteipc/hm_liteipc.c @@ -48,7 +48,7 @@ #define USE_TASKID_AS_HANDLE YES #define USE_MMAP YES #define IPC_MSG_DATA_SZ_MAX 1024 -#define IPC_MSG_OBJECT_NUM_MAX 256 +#define IPC_MSG_OBJECT_NUM_MAX (IPC_MSG_DATA_SZ_MAX / sizeof(SpecialObj)) #define LITE_IPC_POOL_NAME "liteipc" #define LITE_IPC_POOL_PAGE_MAX_NUM 64 /* 256KB */ @@ -105,7 +105,7 @@ STATIC const struct file_operations_vfs g_liteIpcFops = { #if (LOSCFG_KERNEL_TRACE == YES) const char *g_operStr[OPERATION_NUM] = {"WRITE", "WRITE_DROP", "TRY_READ", "READ", "READ_DROP", "READ_TIMEOUT"}; -const char *g_msgTypeStr[MT_NUM] = {"REQUEST", "REPLY", "DEATH_NOTIFY"}; +const char *g_msgTypeStr[MT_NUM] = {"REQUEST", "REPLY", "FAILED_REPLY", "DEATH_NOTIFY"}; const char *g_ipcStatusStr[2] = {"NOT_PEND", "PEND"}; LITE_OS_SEC_TEXT STATIC UINT16 IpcTraceHook(UINT8 *inputBuffer, UINT32 id, UINT32 msg)