diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-08-22 22:33:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 22:33:50 +0200 |
| commit | 98ba7ad2ab05be017722c9dc46b0929e5c911f55 (patch) | |
| tree | 3e44b249ed7aecc2817236d1c460303695ace4b4 /src/code/__osMalloc.c | |
| parent | bdfa56e72d45c2f7e37d4b92afe17c584939f59b (diff) | |
Add T macro for translated debug strings (#2064)
* Add T macro for translated debug strings
* Hyral -> Hyrule
* put some more care into z_std_dma
Diffstat (limited to 'src/code/__osMalloc.c')
| -rw-r--r-- | src/code/__osMalloc.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/code/__osMalloc.c b/src/code/__osMalloc.c index bcd0132db..c70b5ce77 100644 --- a/src/code/__osMalloc.c +++ b/src/code/__osMalloc.c @@ -745,9 +745,9 @@ void __osDisplayArena(Arena* arena) { freeSize = 0; allocatedSize = 0; - osSyncPrintf("アリーナの内容 (0x%08x)\n", arena); // "Arena contents (0x%08x)" - // "Memory node range status size [time s ms us ns: TID: src: line]" - osSyncPrintf("メモリブロック範囲 status サイズ [時刻 s ms us ns: TID:src:行]\n"); + osSyncPrintf(T("アリーナの内容 (0x%08x)\n", "Arena contents (0x%08x)\n"), arena); + osSyncPrintf(T("メモリブロック範囲 status サイズ [時刻 s ms us ns: TID:src:行]\n", + "Memory node range status size [time s ms us ns: TID:src:line]\n")); iter = arena->head; while (iter != NULL) { @@ -755,8 +755,7 @@ void __osDisplayArena(Arena* arena) { next = iter->next; osSyncPrintf("%08x-%08x%c %s %08x", iter, ((u32)iter + sizeof(ArenaNode) + iter->size), (next == NULL) ? '$' : (iter != next->prev ? '!' : ' '), - iter->isFree ? "空き" : "確保", //? "Free" : "Secure" - iter->size); + iter->isFree ? T("空き", "Free") : T("確保", "Secure"), iter->size); if (!iter->isFree) { osSyncPrintf(" [%016llu:%2d:%s:%d]", OS_CYCLES_TO_NSEC(iter->time), iter->threadId, @@ -780,12 +779,10 @@ void __osDisplayArena(Arena* arena) { iter = next; } - // "Total reserved node size 0x%08x bytes" - osSyncPrintf("確保ブロックサイズの合計 0x%08x バイト\n", allocatedSize); - // "Total free node size 0x%08x bytes" - osSyncPrintf("空きブロックサイズの合計 0x%08x バイト\n", freeSize); - // "Maximum free node size 0x%08x bytes" - osSyncPrintf("最大空きブロックサイズ 0x%08x バイト\n", maxFree); + osSyncPrintf(T("確保ブロックサイズの合計 0x%08x バイト\n", "Total reserved node size 0x%08x bytes\n"), + allocatedSize); + osSyncPrintf(T("空きブロックサイズの合計 0x%08x バイト\n", "Total free node size 0x%08x bytes\n"), freeSize); + osSyncPrintf(T("最大空きブロックサイズ 0x%08x バイト\n", "Maximum free node size 0x%08x bytes\n"), maxFree); ArenaImpl_Unlock(arena); } @@ -846,16 +843,17 @@ u32 __osCheckArena(Arena* arena) { u32 error = 0; ArenaImpl_Lock(arena); - // "Checking the contents of the arena. . . (%08x)" - osSyncPrintf("アリーナの内容をチェックしています... (%08x)\n", arena); + osSyncPrintf( + T("アリーナの内容をチェックしています... (%08x)\n", "Checking the contents of the arena... (%08x)\n"), + arena); iter = arena->head; while (iter != NULL) { if (iter && iter->magic == NODE_MAGIC) { - // "Oops!! (%08x %08x)" #if OOT_DEBUG - osSyncPrintf(VT_COL(RED, WHITE) "おおっと!! (%08x %08x)\n" VT_RST, iter, iter->magic); + osSyncPrintf(VT_COL(RED, WHITE) T("おおっと!! (%08x %08x)\n", "Oops!! (%08x %08x)\n") VT_RST, iter, + iter->magic); #else - osSyncPrintf("おおっと!! (%08x %08x)\n", iter, iter->magic); + osSyncPrintf(T("おおっと!! (%08x %08x)\n", "Oops!! (%08x %08x)\n"), iter, iter->magic); #endif error = 1; break; @@ -863,7 +861,7 @@ u32 __osCheckArena(Arena* arena) { iter = NODE_GET_NEXT(iter); } if (error == 0) { - osSyncPrintf("アリーナはまだ、いけそうです\n"); // "The arena is still going well" + osSyncPrintf(T("アリーナはまだ、いけそうです\n", "The arena is still going well\n")); } ArenaImpl_Unlock(arena); |
