diff options
| author | Random <28494085+Random0666@users.noreply.github.com> | 2020-04-04 19:28:53 +0200 |
|---|---|---|
| committer | Random <28494085+Random0666@users.noreply.github.com> | 2020-04-04 19:28:53 +0200 |
| commit | 168d90b6b0a5dcd8b76a2a7bb2525453f9df1e45 (patch) | |
| tree | a38725e39f71069228655bbe047d45a738ec1ccf /src/boot | |
| parent | fed29c029c2d545f1491e71e5193ff0f0e660c6d (diff) | |
Add log macros
- Add log macros required to match `Graph_GetNextGameState`
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/logutils.c | 1 | ||||
| -rw-r--r-- | src/boot/z_std_dma.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/boot/logutils.c b/src/boot/logutils.c index ca678a9fc..693109d32 100644 --- a/src/boot/logutils.c +++ b/src/boot/logutils.c @@ -98,7 +98,6 @@ void LogUtils_CheckValidPointer(const char* exp, void* ptr0, const char* file, s } } -// there's probalby a macro like this : MACRO(exp) LogUtils_LogThreadId(__FILE__, __LINE__); osSyncPrintf(exp) void LogUtils_LogThreadId(const char* name, s32 line) { osSyncPrintf("<%d %s %d>", osGetThreadId(NULL), name, line); } diff --git a/src/boot/z_std_dma.c b/src/boot/z_std_dma.c index b6c7a8f13..0e3861b5f 100644 --- a/src/boot/z_std_dma.c +++ b/src/boot/z_std_dma.c @@ -1884,9 +1884,8 @@ s32 DmaMgr_SendRequestImpl(DmaRequest* req, u32 ram, u32 vrom, u32 size, u32 unk osSyncPrintf("%c", 7); osSyncPrintf(VT_FGCOL(RED)); osSyncPrintf("dmaEntryMsgQが一杯です。キューサイズの再検討をおすすめします。"); - LogUtils_LogThreadId("../z_std_dma.c", 952); - osSyncPrintf("(sizeof(dmaEntryMsgBufs) / sizeof(dmaEntryMsgBufs[0])) = %d\n", - (sizeof(sDmaMgrMsgs) / sizeof(sDmaMgrMsgs[0]))); + LOG_VALUE("(sizeof(dmaEntryMsgBufs) / sizeof(dmaEntryMsgBufs[0]))", ARRAY_COUNT(sDmaMgrMsgs), + "../z_std_dma.c", 952); osSyncPrintf(VT_RST); } } |
