diff options
Diffstat (limited to 'src/boot/libu64/stackcheck.c')
| -rw-r--r-- | src/boot/libu64/stackcheck.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/boot/libu64/stackcheck.c b/src/boot/libu64/stackcheck.c index 8b07188cd..7f6945443 100644 --- a/src/boot/libu64/stackcheck.c +++ b/src/boot/libu64/stackcheck.c @@ -6,12 +6,9 @@ #include "versions.h" -#if MM_VERSION < N64_US || DEBUG_FEATURES -#define STACKCHECK_PRINTF osSyncPrintf -#elif IDO_PRINTF_WORKAROUND -#define STACKCHECK_PRINTF(args) (void)0 -#else -#define STACKCHECK_PRINTF(format, ...) (void)0 +#if MM_VERSION < N64_US +#undef PRINTF +#define PRINTF osSyncPrintf #endif StackEntry* sStackInfoListStart = NULL; @@ -32,7 +29,7 @@ void StackCheck_Init(StackEntry* entry, void* stackBottom, void* stackTop, u32 i for (iter = sStackInfoListStart; iter != NULL; iter = iter->next) { if (iter == entry) { - STACKCHECK_PRINTF( + PRINTF( T("stackcheck_init: %08x は既にリスト中にある\n", "stackcheck_init: %08x is already in the list\n"), entry); return; @@ -83,8 +80,8 @@ void StackCheck_Cleanup(StackEntry* entry) { } if (inconsistency) { - STACKCHECK_PRINTF( - T("stackcheck_cleanup: %08x リスト不整合です\n", "stackcheck_cleanup: %08x list inconsistency\n"), entry); + PRINTF(T("stackcheck_cleanup: %08x リスト不整合です\n", "stackcheck_cleanup: %08x list inconsistency\n"), + entry); } } @@ -111,8 +108,8 @@ StackStatus StackCheck_GetState(StackEntry* entry) { status = STACK_STATUS_OK; } - STACKCHECK_PRINTF("head=%08x tail=%08x last=%08x used=%08x free=%08x [%s]\n", entry->head, entry->tail, last, used, - free, (entry->name != NULL) ? entry->name : "(null)"); + PRINTF("head=%08x tail=%08x last=%08x used=%08x free=%08x [%s]\n", entry->head, entry->tail, last, used, free, + (entry->name != NULL) ? entry->name : "(null)"); #if MM_VERSION >= N64_US (void)"(null)"; |
