> 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
 09:01:23 up 2 days, 21:25,  3 users,  load average: 0.22, 0.28, 0.26
This commit is contained in:
tracer-ics2023
2024-09-08 09:01:23 +08:00
committed by zzy
parent 49e8a10166
commit 0bc7004744

View File

@ -66,14 +66,14 @@ static inline int fmt_d(char* out, size_t n, const char* fmt, va_list ap) {
return i;
}
static inline int fmt_s(char* out, size_t n, const char* fmt, va_list ap) {
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);
strncpy(out, ch, len);
return len;
}
static inline int fmt_match(char* out, size_t n, const char* fmt, va_list ap) {
static int fmt_match(char* out, size_t n, const char* fmt, va_list ap) {
int res;
assert(*(fmt - 1) == '%');
switch(*fmt) {