Skip to content

Commit d52dd19

Browse files
committed
rtl8195am - fix argument format warning
[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=] Signed-off-by: Tony Wu <[email protected]>
1 parent ec7a3dd commit d52dd19

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/sdk/os/os_dep

1 file changed

+1
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/os/os_dep/tcm_heap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void tcm_heap_dump(void)
6767
chunk;
6868
prev = chunk, chunk = chunk->next)
6969
{
70-
printf(" prev %x, chunk %x, size %d \n\r", prev, chunk, chunk->size);
70+
printf(" prev %p, chunk %p, size %d \n\r", prev, chunk, chunk->size);
7171
}
7272
printf("--------------\n\r");
7373
}

0 commit comments

Comments
 (0)