summaryrefslogtreecommitdiff
path: root/src/boot_O2_g3
diff options
context:
space:
mode:
authorEllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>2021-09-24 00:14:12 +0100
committerGitHub <noreply@github.com>2021-09-23 20:14:12 -0300
commit9e4d51fb9ffc676607f6eb793fb21ef47c891ce5 (patch)
tree60357fb26335540af0806ec3651196924ca4bdca /src/boot_O2_g3
parent2ff7320409d1f6340bed2ea37b7ceb3a49a57525 (diff)
printutils OK, add `va_end` to variadic functions (#294)
* printutils OK * Add va_end to every variadic function
Diffstat (limited to 'src/boot_O2_g3')
-rw-r--r--src/boot_O2_g3/fault_drawer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot_O2_g3/fault_drawer.c b/src/boot_O2_g3/fault_drawer.c
index a5d728864..74a3b7e5e 100644
--- a/src/boot_O2_g3/fault_drawer.c
+++ b/src/boot_O2_g3/fault_drawer.c
@@ -153,6 +153,8 @@ void FaultDrawer_Printf(const char* fmt, ...) {
va_start(args, fmt);
FaultDrawer_VPrintf(fmt, args);
+
+ va_end(args);
}
void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...) {
@@ -161,6 +163,8 @@ void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...) {
FaultDrawer_SetCursor(x, y);
FaultDrawer_VPrintf(fmt, args);
+
+ va_end(args);
}
void FaultDrawer_SetDrawerFB(void* fb, u16 w, u16 h) {