From 98a1a102e661486653b185c417c32e2128dca1aa Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Wed, 9 Sep 2026 11:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=BB=E7=BA=BF=E5=BE=85=E5=90=88?= =?UTF-8?q?=E3=80=91=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RBcore/msg_center.c | 2 ++ library/common/rd_mempool.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RBcore/msg_center.c b/RBcore/msg_center.c index e0ca677..fa15156 100644 --- a/RBcore/msg_center.c +++ b/RBcore/msg_center.c @@ -207,9 +207,11 @@ int MsgCenter_Send(const Msg_t *pstMsg) { // 发送信号量,通知有新消息 Rd_SemPost(&g_astModules[iDstIndex].stSem, __func__, NULL); + log_d("send success send ID:%x to %d", pstMsg->m_uiMsgID, pstMsg->m_uiDstModule); return RD_SUCCESS; } + log_w("failed queue full send ID:%x to %d", pstMsg->m_uiMsgID, pstMsg->m_uiDstModule); return RD_FAILURE; // 队列满 } diff --git a/library/common/rd_mempool.c b/library/common/rd_mempool.c index 95b1270..cdfde5c 100644 --- a/library/common/rd_mempool.c +++ b/library/common/rd_mempool.c @@ -217,7 +217,7 @@ WEAK void Rd_MemDoInit(void) (void)Rd_MutexInit(&g_pool_mutex); #endif - log_d("MemPool Init Success: Total %d Bytes", MEM_POOL_TOTAL_SIZE); + log_e("MemPool Init Success: Total %d Bytes", MEM_POOL_TOTAL_SIZE); } WEAK void Rd_MemDoDeinit(void) @@ -296,7 +296,7 @@ WEAK void* Rd_MemPoolMalloc(size_t size) } if (pvReturn == NULL) { - log_d("MemPool Malloc Failed: Request %zu, No Block Found", size); + log_e("MemPool Malloc Failed: Request %zu, No Block Found", size); } } #ifdef USE_FREERTOS @@ -309,7 +309,7 @@ WEAK void Rd_MemPoolFree(void* ptr) { if (!is_valid_ptr(ptr)) { - log_d("MemPool Free Error: Invalid Pointer %p", ptr); + log_e("MemPool Free Error: Invalid Pointer %p", ptr); return; } @@ -322,7 +322,7 @@ WEAK void Rd_MemPoolFree(void* ptr) // 双重释放保护 if (block->is_free) { - log_d("MemPool Free Error: Double Free detected at %p", ptr); + log_e("MemPool Free Error: Double Free detected at %p", ptr); return; }