From 41a94d062985df4911100932454c687056dade49 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Mon, 8 Dec 2025 20:45:39 +0000 Subject: [PATCH] Fix putc() --- common/uvm32_target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/uvm32_target.h b/common/uvm32_target.h index b004c49..52277d1 100644 --- a/common/uvm32_target.h +++ b/common/uvm32_target.h @@ -53,7 +53,7 @@ static uint32_t syscall(uint32_t id, uint32_t param) { #define printdec(x) syscall_cast(UVM32_SYSCALL_PRINTDEC, x) #define printhex(x) syscall_cast(UVM32_SYSCALL_PRINTHEX, x) #define millis() syscall_cast(UVM32_SYSCALL_MILLIS, 0) -#define putc() syscall_cast(UVM32_SYSCALL_PUTC, 0) +#define putc(x) syscall_cast(UVM32_SYSCALL_PUTC, x) #define getc() syscall_cast(UVM32_SYSCALL_GETC, 0) #define yield() syscall_cast(UVM32_SYSCALL_YIELD, 0)