> 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 11:56:09 up 2 days, 2:10, 1 user, load average: 1.05, 0.60, 0.45
This commit is contained in:
@ -27,7 +27,8 @@ int num_to_ascii(int num, int power, int size, char *buf) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int print_fmt(char **out, int n, const char** fmt, va_list ap) {
|
static inline int print_fmt(char **out, int n, const char** fmt, void* _ap) {
|
||||||
|
va_list ap = *(va_list*)_ap;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
switch (**fmt) {
|
switch (**fmt) {
|
||||||
case 'd':
|
case 'd':
|
||||||
@ -67,7 +68,7 @@ int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
|
|||||||
if (*fmt == '%') {
|
if (*fmt == '%') {
|
||||||
// FIXME
|
// FIXME
|
||||||
fmt++;
|
fmt++;
|
||||||
print_fmt(&out, 123, &fmt, ap);
|
print_fmt(&out, 123, &fmt, &ap);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
*out = *fmt;
|
*out = *fmt;
|
||||||
|
Reference in New Issue
Block a user