mirror of https://github.com/ARMmbed/mbed-os.git
rtl8195am - fix tcm_heap.c warnings
Fix the following warnings: [Warning] tcm_heap.c@70,18: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=] [Warning] tcm_heap.c@70,28: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'MemChunk * {aka struct _MemChunk *}' [-Wformat=] [Warning] tcm_heap.c@336,6: unused variable 'i' [-Wunused-variable] Signed-off-by: Tony Wu <tonywu@realtek.com>pull/6697/head
parent
c6279e2420
commit
04a2e92d54
|
@ -67,7 +67,7 @@ void tcm_heap_dump(void)
|
||||||
chunk;
|
chunk;
|
||||||
prev = chunk, chunk = chunk->next)
|
prev = chunk, chunk = chunk->next)
|
||||||
{
|
{
|
||||||
printf(" prev %x, chunk %x, size %d \n\r", prev, chunk, chunk->size);
|
printf(" prev %p, chunk %p, size %d \n\r", prev, chunk, chunk->size);
|
||||||
}
|
}
|
||||||
printf("--------------\n\r");
|
printf("--------------\n\r");
|
||||||
}
|
}
|
||||||
|
@ -333,7 +333,7 @@ int tcm_heap_testRun(void)
|
||||||
alloc_test(ALLOC_SIZE2, TEST_LEN2);
|
alloc_test(ALLOC_SIZE2, TEST_LEN2);
|
||||||
/* Try to allocate the whole heap */
|
/* Try to allocate the whole heap */
|
||||||
uint8_t *b = tcm_heap_allocmem(HEAP_SIZE);
|
uint8_t *b = tcm_heap_allocmem(HEAP_SIZE);
|
||||||
int i, j;
|
int j;
|
||||||
//ASSERT(b);
|
//ASSERT(b);
|
||||||
//ASSERT(heap_freeSpace(&h) == 0);
|
//ASSERT(heap_freeSpace(&h) == 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue