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

@ -20,13 +20,13 @@ int serial_init()
outb(COM1 | 0, 0xAE); /* Enable loopback mode */
if (inb(COM1 | 0) != 0xAE) { /* Loopback test */
printf(LOG_WARN "Serial COM1 loopback test failed\n");
kprintf(LOG_WARN "Serial COM1 loopback test failed\n");
return 1;
}
outb(COM1 | 1, 0x01); /* Enable interrupts */
outb(COM1 | 4, 0x0F); /* Enter normal operation */
printf(LOG_SUCCESS "Serial COM1 initialized\n");
kprintf(LOG_SUCCESS "Serial COM1 initialized\n");
return 0;
}