From a24e03b84378a3e973a5a352168abe3a0e82e5ec Mon Sep 17 00:00:00 2001 From: MegaMech Date: Sat, 29 Jan 2022 04:30:58 -0700 Subject: [PATCH 1/2] Update syncprintf.c --- src/libc/syncprintf.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/libc/syncprintf.c b/src/libc/syncprintf.c index 55aecf1..320d792 100755 --- a/src/libc/syncprintf.c +++ b/src/libc/syncprintf.c @@ -2,14 +2,15 @@ #include #include -void osSyncPrintf(const char *fmt, ...) +s32 osSyncPrintf(s32 arg0, s32 arg1, s32 arg2) { - int ans; - va_list ap; - // these functions intentionally left blank. ifdeffed out in rom release + // This function left blank. Ifdeffed out in rom release + return (1); } void rmonPrintf(const char *fmt, ...) { - int ans; - va_list ap; + va_list args; + va_start(args, fmt); + _Printf(osSyncPrintf, NULL, fmt, args); + va_end(args); } From a9b7a2bdb7e1827932683284c8701595f0548d27 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Sat, 29 Jan 2022 11:34:55 -0700 Subject: [PATCH 2/2] Update syncprintf.c --- src/libc/syncprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libc/syncprintf.c b/src/libc/syncprintf.c index 320d792..0e76c6b 100755 --- a/src/libc/syncprintf.c +++ b/src/libc/syncprintf.c @@ -2,7 +2,7 @@ #include #include -s32 osSyncPrintf(s32 arg0, s32 arg1, s32 arg2) +char *osSyncPrintf(char *arg0, const char *arg1, size_t size) { // This function left blank. Ifdeffed out in rom release return (1);