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>
This commit is contained in:
Alex Bennée 2019-04-30 13:04:51 +01:00
parent 67f3da9d74
commit 936647d3fc

View File

@ -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;