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

@ -33,7 +33,7 @@ void pic_eoi(uint8_t irq)
void exception(int vector, int error)
{
printf(LOG_WARN "EXCEPTION: %x, error code: %d\n", vector, error);
kprintf(LOG_WARN "EXCEPTION: %x, error code: %d\n", vector, error);
}
void pic_init()
@ -63,5 +63,5 @@ void pic_init()
outb(PIC2_DATA, mask2);
pic_eoi(15);
printf(LOG_SUCCESS "8259 PIC initialized\n");
kprintf(LOG_SUCCESS "8259 PIC initialized\n");
}