diff options
| author | heyuanjie <[email protected]> | 2018-06-11 14:28:13 +0800 |
|---|---|---|
| committer | heyuanjie <[email protected]> | 2018-06-11 14:28:13 +0800 |
| commit | e1be777adc7dc3076bb49edfd527d3f501f3d874 (patch) | |
| tree | 71d348573d0ac4d2612d18d3634e783a0982b4cc | |
| parent | 28b8e43181f97a480c1fdc4e2b57a319d29ddcfd (diff) | |
解除警告
| -rw-r--r-- | components/lwp/lwp_mem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/lwp/lwp_mem.c b/components/lwp/lwp_mem.c index 95c95441b8..ca390e4f96 100644 --- a/components/lwp/lwp_mem.c +++ b/components/lwp/lwp_mem.c @@ -22,7 +22,6 @@ * 2018-03-24 Tanek the first version */ -#include <stdio.h> #include <rtthread.h> #include <lwp.h> @@ -77,7 +76,7 @@ static void *rt_lwp_malloc_page(struct rt_lwp *lwp, rt_size_t npages) dbg_log(DBG_LOG, "lwp alloc page: %d\n", npages); - sprintf(name, "lwp%02x", lwp->heap_cnt); + rt_sprintf(name, "lwp%02x", lwp->heap_cnt); rt_lwp_memheap_init(lwp_heap, name, chunk, npages * LWP_MEM_PAGE_SIZE); rt_list_insert_before(&lwp->hlist, &lwp_heap->mlist); |
