diff options
| author | Meco Man <[email protected]> | 2021-03-08 11:25:38 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-03-08 11:25:38 +0800 |
| commit | 678306d300faa44b6cd099464bd978afb2c5c9a6 (patch) | |
| tree | 09d4a3074f887ce0441ed611cc208c403afd0572 /src/memheap.c | |
| parent | ce86058201432e865b8d7c4096b3675642a43a42 (diff) | |
[kernel]auto formatted
Diffstat (limited to 'src/memheap.c')
| -rw-r--r-- | src/memheap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memheap.c b/src/memheap.c index 449e66e975..a5d86f6347 100644 --- a/src/memheap.c +++ b/src/memheap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 */ @@ -130,7 +130,7 @@ rt_err_t rt_memheap_detach(struct rt_memheap *heap) RT_ASSERT(heap); RT_ASSERT(rt_object_get_type(&heap->parent) == RT_Object_Class_MemHeap); RT_ASSERT(rt_object_is_systemobject(&heap->parent)); - + rt_sem_detach(&heap->lock); rt_object_detach(&(heap->parent)); @@ -765,7 +765,7 @@ void dump_used_memheap(struct rt_memheap *mh) rt_kprintf("\nmemory heap address:\n"); rt_kprintf("heap_ptr: 0x%08x\n", mh->start_addr); - rt_kprintf("free : 0x%08x\n", mh->available_size); + rt_kprintf("free : 0x%08x\n", mh->available_size); rt_kprintf("max_used: 0x%08x\n", mh->max_used_size); rt_kprintf("size : 0x%08x\n", mh->pool_size); |
