summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_printf.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-02-10 11:20:42 -0800
committerGitHub <noreply@github.com>2025-02-10 21:20:42 +0200
commit2453c0e3333157090e839eeab768d19b6a2b0ba1 (patch)
treef51d7bcca7a8227966fc05ee7ef25cd508075a4c /src/m_Do/m_Do_printf.cpp
parent6c24ff192933300faf555f1411e03432c751afe5 (diff)
copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
Diffstat (limited to 'src/m_Do/m_Do_printf.cpp')
-rw-r--r--src/m_Do/m_Do_printf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/m_Do/m_Do_printf.cpp b/src/m_Do/m_Do_printf.cpp
index e070606630..9569a4f869 100644
--- a/src/m_Do/m_Do_printf.cpp
+++ b/src/m_Do/m_Do_printf.cpp
@@ -123,8 +123,8 @@ void mDoPrintf_vprintf(char const* fmt, va_list args) {
if (currentThread == NULL) {
mDoPrintf_vprintf_Interrupt(fmt, args);
} else {
- u8* stackPtr = OSGetStackPointer();
- if (stackPtr < (u8*)currentThread->stack_end + 0xA00 || stackPtr > currentThread->stack_base) {
+ u8* stackPtr = (u8*)OSGetStackPointer();
+ if (stackPtr < (u8*)currentThread->stackEnd + 0xA00 || stackPtr > currentThread->stackBase) {
mDoPrintf_vprintf_Interrupt(fmt, args);
} else {
mDoPrintf_vprintf_Thread(fmt, args);
@@ -221,7 +221,7 @@ void OSReport_System(const char* fmt, ...) {
}
/* 80006E7C-80006FB4 0017BC 0138+00 0/0 9/9 0/0 .text OSPanic */
-void OSPanic(const char* file, s32 line, const char* fmt, ...) {
+void OSPanic(const char* file, int line, const char* fmt, ...) {
va_list args;
u32 i;
u32* p;
@@ -241,4 +241,4 @@ void OSPanic(const char* file, s32 line, const char* fmt, ...) {
tmp = (u32*)0x1234567; // ??????
*tmp = 0x1234567;
PPCHalt();
-} \ No newline at end of file
+}