all printf calls replaced with kprintf

This commit is contained in:
2022-10-24 18:33:43 +06:00
parent c70544ff97
commit 4785023126
27 changed files with 189 additions and 159 deletions

View File

@@ -1,6 +1,7 @@
#include "std.h"
#include "errors.h"
#include "cptr.h"
#include "../kprint/kprintf.h"
char* errname(ErrorId err){
switch(err){
@@ -47,7 +48,7 @@ void Maybe_free(Maybe e){
}
void printMaybe(Maybe e){
if(e.errmsg) printf("%s\n",e.errmsg);
if(e.errmsg) kprintf("%s\n",e.errmsg);
else printuni(e.value);
}