some fixes

This commit is contained in:
2022-10-28 02:09:10 +06:00
parent 88815452bc
commit 1632c78300
3 changed files with 16 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ void kprintf(const char* format, ...){
case 'u':
argstr=toString_uint(va_arg(vl, uint64),0,0);
break;
case 'i':
case 'i': case 'd':
argstr=toString_int(va_arg(vl, uint64));
break;
case 'f':
@@ -101,6 +101,10 @@ void kprintf(const char* format, ...){
argstr[1]=0;
break;
default:
putc('\n',stdout);
putc('<',stdout);
putc(c,stdout);
putc('>',stdout);
throw(ERR_FORMAT);
}
if(argstr){