summaryrefslogtreecommitdiff
path: root/src/code/__osMalloc.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-09-03 20:43:06 -0700
committerGitHub <noreply@github.com>2024-09-03 23:43:06 -0400
commitc8cafdc93ed49b1dd77ac5494acb1da00ec834bf (patch)
tree6f6f416ee48032fb840b044743db09acd2c60f56 /src/code/__osMalloc.c
parent7a9209c88561ed1d1c8025e4001f0f29e5921cd2 (diff)
Rename FaultDrawer_ functions to Fault_ (#2113)
* Rename FaultDrawer_ functions to Fault_ * Rename FaultDrawer_Init to Fault_InitDrawer
Diffstat (limited to 'src/code/__osMalloc.c')
-rw-r--r--src/code/__osMalloc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/code/__osMalloc.c b/src/code/__osMalloc.c
index 69a39f872..598e16a98 100644
--- a/src/code/__osMalloc.c
+++ b/src/code/__osMalloc.c
@@ -805,9 +805,9 @@ void ArenaImpl_FaultClient(Arena* arena) {
ArenaNode* iter;
ArenaNode* next;
- FaultDrawer_Printf("ARENA INFO (0x%08x)\n", arena);
+ Fault_Printf("ARENA INFO (0x%08x)\n", arena);
if (!__osMallocIsInitialized(arena)) {
- FaultDrawer_Printf("Arena is uninitalized\n", arena);
+ Fault_Printf("Arena is uninitalized\n", arena);
return;
}
@@ -815,16 +815,16 @@ void ArenaImpl_FaultClient(Arena* arena) {
freeSize = 0;
allocatedSize = 0;
- FaultDrawer_Printf("Memory Block Region status size\n");
+ Fault_Printf("Memory Block Region status size\n");
iter = arena->head;
while (iter != NULL) {
if (iter != NULL && iter->magic == NODE_MAGIC) {
next = iter->next;
- FaultDrawer_Printf("%08x-%08x%c %s %08x", iter, ((u32)iter + sizeof(ArenaNode) + iter->size),
- (!next) ? '$' : (iter != next->prev ? '!' : ' '), iter->isFree ? "F" : "A", iter->size);
+ Fault_Printf("%08x-%08x%c %s %08x", iter, ((u32)iter + sizeof(ArenaNode) + iter->size),
+ (!next) ? '$' : (iter != next->prev ? '!' : ' '), iter->isFree ? "F" : "A", iter->size);
- FaultDrawer_Printf("\n");
+ Fault_Printf("\n");
if (iter->isFree) {
freeSize += iter->size;
@@ -835,17 +835,17 @@ void ArenaImpl_FaultClient(Arena* arena) {
allocatedSize += iter->size;
}
} else {
- FaultDrawer_SetFontColor(0xF801);
- FaultDrawer_Printf("%08x Block Invalid\n", iter);
+ Fault_SetFontColor(0xF801);
+ Fault_Printf("%08x Block Invalid\n", iter);
next = NULL;
}
iter = next;
}
- FaultDrawer_SetFontColor(0x7F1);
- FaultDrawer_Printf("Total Alloc Block Size %08x\n", allocatedSize);
- FaultDrawer_Printf("Total Free Block Size %08x\n", freeSize);
- FaultDrawer_Printf("Largest Free Block Size %08x\n", maxFree);
+ Fault_SetFontColor(0x7F1);
+ Fault_Printf("Total Alloc Block Size %08x\n", allocatedSize);
+ Fault_Printf("Total Free Block Size %08x\n", freeSize);
+ Fault_Printf("Largest Free Block Size %08x\n", maxFree);
}
u32 __osCheckArena(Arena* arena) {