aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stdio/printf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdio/printf.c b/lib/stdio/printf.c
index 269b9b6..7adf76e 100644
--- a/lib/stdio/printf.c
+++ b/lib/stdio/printf.c
@@ -25,6 +25,10 @@ printf(const char *restrict format, ...)
case 's':
written += uart_puts(COM1, va_arg(params, const char *), -1);
break;
+ case 'c':
+ written++;
+ uart_write(COM1, va_arg(params, int));
+ break;
case 'd':
written += uart_puts(COM1, itoa(buffer, va_arg(params, int), 10), -1);
break;