stdio: add vsnprintf and change printf to kprintf

This commit is contained in:
Michael Shaw 2023-05-14 01:02:11 -04:00
commit 0395b65ad8
21 changed files with 102 additions and 186 deletions

View file

@ -206,7 +206,7 @@ void kfree(void *ptr)
struct rbnode *n = rbt_search(&kmalloc_tree, (uint64_t)ptr);
if (n == NULL) {
printf(LOG_ERROR "kmalloc: invalid free: %X\n", ptr);
kprintf(LOG_ERROR "kmalloc: invalid free: %X\n", ptr);
return;
}