diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2019-04-30 13:04:51 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-05-28 10:28:51 +0100 |
commit | 936647d3fcea6a8ff1ecb422ed23afd9f79357c0 (patch) | |
tree | beb065405cdd04e7fbbc46c1bcca676049e4dd63 /tests/tcg | |
parent | 67f3da9d743592182e593cc843f547a966a2670b (diff) | |
download | qemu-936647d3fcea6a8ff1ecb422ed23afd9f79357c0.zip qemu-936647d3fcea6a8ff1ecb422ed23afd9f79357c0.tar.gz qemu-936647d3fcea6a8ff1ecb422ed23afd9f79357c0.tar.bz2 |
tests/tcg/minilib: support %c format char
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/tcg')
-rw-r--r-- | tests/tcg/minilib/printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tcg/minilib/printf.c b/tests/tcg/minilib/printf.c index 121620c..10472b4 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; |