> 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 12:03:00 up 5 days, 7:08, 1 user, load average: 0.46, 0.36, 0.28
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
#if !defined(__ISA_NATIVE__) || defined(__NATIVE_USE_KLIB__)
|
||||
|
||||
int num_to_ascii(int num, int power, int size, char *buf) {
|
||||
int num_to_ascii(int64_t num, int power, int size, char *buf) {
|
||||
if (size <= 1) {
|
||||
return 0;
|
||||
}
|
||||
@ -52,8 +52,11 @@ static inline int print_fmt(char **out, int n, const char** fmt, va_list (*ap))
|
||||
**out = ch;
|
||||
(*out) ++;
|
||||
break;
|
||||
case 'x':
|
||||
case 'p':
|
||||
ret = num_to_ascii(va_arg(*ap, intptr_t), 16, n, *out);
|
||||
(*out) += ret;
|
||||
break;
|
||||
case 'x':
|
||||
ret = num_to_ascii(va_arg(*ap, int), 16, n, *out);
|
||||
(*out) += ret;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user