From b0bd815982f70c7b144786a1dcf166ff9f7dff06 Mon Sep 17 00:00:00 2001 From: Cuyler36 Date: Sat, 25 Nov 2023 12:32:54 -0500 Subject: [PATCH] Link libu64/debug.c --- config/dol_slices.yml | 7 +++---- src/libu64/debug.c | 9 +++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/dol_slices.yml b/config/dol_slices.yml index 8b2b2730..c338a864 100644 --- a/config/dol_slices.yml +++ b/config/dol_slices.yml @@ -59,10 +59,9 @@ libforest/osreport.c: # .sbss: [0x80218628, 0x80218630] libforest/ReconfigBATs.c: .text: [0x8005adac, 0x8005aed4] -#libu64/debug.c: //not match -# .text: [0x8005aed4, 0x8005af30] -# .data: [0x800dc7c8, 0x800dc7f0] -#libu64/gfxprint.c: specify ranges later +libu64/debug.c: + .text: [0x8005aed4, 0x8005af30] + .data: [0x800dc7c8, 0x800dc7f0] libu64/gfxprint.c: .text: [0x8005af30, 0x8005b9a8] .data: [0x800dc7f0, 0x800dc810] diff --git a/src/libu64/debug.c b/src/libu64/debug.c index 200aff82..a57d3d59 100644 --- a/src/libu64/debug.c +++ b/src/libu64/debug.c @@ -1,8 +1,9 @@ #include "libu64/debug.h" #include "libultra/osThread.h" +#include "libc64/sprintf.h" -void _dbg_hungup(const char* name, s32 line) { -char dbg_tbuf[0x100]; - -sprintf(dbg_tbuf, "*** HungUp in thread %d, [%s:%d] ***\n",osGetThreadId(0), name, line); +extern void _dbg_hungup(const char* file, int line) { + char dbg_tbuf[0x100]; + + sprintf(dbg_tbuf, "*** HungUp in thread %d, [%s:%d] ***\n", osGetThreadId(0), file, line); }