summaryrefslogtreecommitdiff
path: root/src/boot_O2/gfxprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot_O2/gfxprint.c')
-rw-r--r--src/boot_O2/gfxprint.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/boot_O2/gfxprint.c b/src/boot_O2/gfxprint.c
index f65d88200..a6f84a7a4 100644
--- a/src/boot_O2/gfxprint.c
+++ b/src/boot_O2/gfxprint.c
@@ -171,15 +171,18 @@ Gfx* GfxPrint_Close(GfxPrint* this) {
return ret;
}
-void GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) {
- PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args);
+s32 GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) {
+ return PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args);
}
-void GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) {
+s32 GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) {
+ s32 ret;
va_list args;
va_start(args, fmt);
- GfxPrint_VPrintf(this, fmt, args);
+ ret = GfxPrint_VPrintf(this, fmt, args);
va_end(args);
+
+ return ret;
}