wm: teppich

Download patch

ref: d94edd4b9a13e1ead5782c72753f3a6b5b02f2a6
parent: 10784c7106b0538ad853c421daf33c0d6597ff5d
author: mkf <mkf@cloud9p.org>
date: Mon Aug 12 04:56:58 EDT 2024

printf: handle %%

--- a/libc/printf.c
+++ b/libc/printf.c
@@ -60,6 +60,9 @@
 			print_str("0x");
 			count += print_digit((long)va_arg(ap, unsigned int), 16);
 			break;
+		case '%':
+			print_str("%");
+			count += 1;
 		default:
 			count += print_char(specifier);
 			break;