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
Tony Wu 2018-04-17 16:21:16 +08:00 committed by adbridge
parent c6279e2420
commit 04a2e92d54
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void tcm_heap_dump(void)
chunk;
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");
}
@ -333,7 +333,7 @@ int tcm_heap_testRun(void)
alloc_test(ALLOC_SIZE2, TEST_LEN2);
/* Try to allocate the whole heap */
uint8_t *b = tcm_heap_allocmem(HEAP_SIZE);
int i, j;
int j;
//ASSERT(b);
//ASSERT(heap_freeSpace(&h) == 0);