> 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:40:47 up  1:20,  1 user,  load average: 0.15, 0.10, 0.10
This commit is contained in:
tracer-ics2023
2024-09-11 10:40:48 +08:00
committed by zzy
parent c6cd152844
commit e3af4f68bb

View File

@ -66,6 +66,7 @@ static inline int fmt_d(char* out, size_t n, const char* fmt, va_list ap) {
return i;
}
__attribute__((noinline))
static int fmt_s(char* out, size_t n, const char* fmt, va_list ap) {
const char* ch = va_arg(ap, const char*);
size_t len = strlen(ch);
@ -73,6 +74,7 @@ static int fmt_s(char* out, size_t n, const char* fmt, va_list ap) {
return len;
}
__attribute((noinline))
static int fmt_match(char* out, size_t n, const char* fmt, va_list ap) {
int res;
assert(*(fmt - 1) == '%');