stdio: add vsnprintf and change printf to kprintf
This commit is contained in:
parent
05c528f64c
commit
0395b65ad8
21 changed files with 102 additions and 186 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue