[Qemu-devel] [PATCH v2 19/28] tests/tcg/minilib: support %c format char

Alex Bennée posted 28 patches 6 years, 8 months ago
Only 27 patches received!
There is a newer version of this series
[Qemu-devel] [PATCH v2 19/28] tests/tcg/minilib: support %c format char
Posted by Alex Bennée 6 years, 8 months ago
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
 tests/tcg/minilib/printf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/tcg/minilib/printf.c b/tests/tcg/minilib/printf.c
index 121620cb162..10472b4f585 100644
--- a/tests/tcg/minilib/printf.c
+++ b/tests/tcg/minilib/printf.c
@@ -119,6 +119,9 @@ void ml_printf(const char *fmt, ...)
             str = va_arg(ap, char*);
             print_str(str);
             break;
+        case 'c':
+            __sys_outc(va_arg(ap, int));
+            break;
         case '%':
             __sys_outc(*fmt);
             break;
-- 
2.20.1