From cf4dc98cc934cdb62ed8b5001602468fac6dfeb3 Mon Sep 17 00:00:00 2001 From: cadmic Date: Fri, 15 Nov 2024 10:18:05 -0800 Subject: Use debug macros even in N64-only code (#2298) * Use debug macros even in N64-only code * Use UNK_FILE/UNK_LINE instead --- src/boot/z_std_dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/boot') diff --git a/src/boot/z_std_dma.c b/src/boot/z_std_dma.c index d609ce6f1..b8eaecf74 100644 --- a/src/boot/z_std_dma.c +++ b/src/boot/z_std_dma.c @@ -541,11 +541,9 @@ s32 DmaMgr_RequestAsync(DmaRequest* req, void* ram, uintptr_t vrom, size_t size, #if OOT_DEBUG if ((ram == NULL) || (osMemSize < OS_K0_TO_PHYSICAL(ram) + size) || (vrom & 1) || (vrom > 0x4000000) || (size == 0) || (size & 1)) { - // The line numbers for `DMA_ERROR` are only used in retail builds, but this usage was removed so - // its line number is unknown. //! @bug `req` is passed to `DMA_ERROR` without rom, ram and size being set DMA_ERROR(req, NULL, "ILLIGAL DMA-FUNCTION CALL", T("パラメータ異常です", "Parameter error"), "../z_std_dma.c", - 0, 0, 0); + UNK_LINE, UNK_LINE, UNK_LINE); } #endif -- cgit v1.2.3