From 3be307bf35e99624edc328206061ab4503a48251 Mon Sep 17 00:00:00 2001 From: cadmic Date: Thu, 1 Feb 2024 20:17:17 -0800 Subject: [PATCH] Match stackcheck.c and code_800FC620.c (#1656) * Match stackcheck.c * Match code_800FC620.c --- src/boot/stackcheck.c | 2 ++ src/code/code_800FC620.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/boot/stackcheck.c b/src/boot/stackcheck.c index 2ab424e200..f7eefad718 100644 --- a/src/boot/stackcheck.c +++ b/src/boot/stackcheck.c @@ -102,9 +102,11 @@ u32 StackCheck_GetState(StackEntry* entry) { entry->name != NULL ? entry->name : "(null)"); PRINTF(VT_RST); +#if OOT_DEBUG if (ret != STACK_STATUS_OK) { LogUtils_LogHexDump(entry->head, (uintptr_t)entry->tail - (uintptr_t)entry->head); } +#endif return ret; } diff --git a/src/code/code_800FC620.c b/src/code/code_800FC620.c index deca11a4fa..462179b388 100644 --- a/src/code/code_800FC620.c +++ b/src/code/code_800FC620.c @@ -26,7 +26,11 @@ void* func_800FC800(u32 size) { size = 1; } +#if OOT_DEBUG return __osMallocDebug(&gSystemArena, size, sNew, 0); +#else + return __osMalloc(&gSystemArena, size); +#endif } // possibly some kind of delete() function