summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
authordongly <[email protected]>2022-08-03 00:09:49 +0800
committerGitHub <[email protected]>2022-08-02 12:09:49 -0400
commit3363586cbbf507937a6be74397f4ffd5c6966fe5 (patch)
tree8eaac87aa11b72c93a96b128d5a15134f097e95d /src/mem.c
parent7882e42c614c24a1750cba4a3e2936b6bf68f42f (diff)
Fix some compilation warning (#5744)
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
Diffstat (limited to 'src/mem.c')
-rw-r--r--src/mem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem.c b/src/mem.c
index 307391cac1..14593bcfd7 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -290,10 +290,14 @@ void *rt_smem_alloc(rt_smem_t m, rt_size_t size)
RT_ASSERT(rt_object_is_systemobject(&m->parent));
if (size != RT_ALIGN(size, RT_ALIGN_SIZE))
+ {
RT_DEBUG_LOG(RT_DEBUG_MEM, ("malloc size %d, but align to %d\n",
size, RT_ALIGN(size, RT_ALIGN_SIZE)));
+ }
else
+ {
RT_DEBUG_LOG(RT_DEBUG_MEM, ("malloc size %d\n", size));
+ }
small_mem = (struct rt_small_mem *)m;
/* alignment size */