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