> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 10:13:28 up 5 days,  5:19,  1 user,  load average: 1.89, 0.70, 0.48
This commit is contained in:
tracer-ics2023
2024-09-22 10:13:30 +08:00
committed by zzy
parent 66b05c854e
commit df7af33d70

View File

@ -53,6 +53,7 @@ static inline int print_fmt(char **out, int n, const char** fmt, va_list (*ap))
(*out) ++;
break;
case 'x':
case 'p':
ret = num_to_ascii(va_arg(*ap, int), 16, n, *out);
(*out) += ret;
break;
@ -69,7 +70,7 @@ int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
if (*fmt == '%') {
// FIXME
fmt++;
print_fmt(&out, 123, &fmt, (va_list*)&ap);
print_fmt(&out, n, &fmt, (va_list*)&ap);
continue;
}
*out = *fmt;