mirror of https://gitee.com/openkylin/qemu.git
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:
parent
67f3da9d74
commit
936647d3fc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue