From 23fe630057473a1e25723429832f818b84ec41aa Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 22 Mar 2019 01:50:32 +0100 Subject: [PATCH] AK: Allow printing a literal '%' character with the printf family. --- AK/printf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/printf.cpp b/AK/printf.cpp index 41c9c3dbb6..ccef0e6d67 100644 --- a/AK/printf.cpp +++ b/AK/printf.cpp @@ -267,6 +267,11 @@ one_more: ++ret; break; + case '%': + putch(bufptr, '%'); + ++ret; + break; + case 'p': putch(bufptr, '0'); putch(bufptr, 'x');