stdio: Added LOG_ specifiers to all prints

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2023-02-28 20:32:39 -05:00
commit 92396db851
6 changed files with 21 additions and 12 deletions

View file

@ -27,7 +27,7 @@ int madt_parse_next_entry(int offset)
int type = madt[offset];
int len = madt[offset + 1];
printf("MADT Entry %d: %s\n", n_madt_entries, madt_entry_types[type]);
printf(LOG_INFO "MADT Entry %d: %s\n", n_madt_entries, madt_entry_types[type]);
switch (type) {
case MADT_LAPIC:
@ -45,7 +45,7 @@ int madt_parse_next_entry(int offset)
case MADT_X2_LAPIC:
break;
default:
printf("Unrecognized MADT entry #%d, type=%d\n", n_madt_entries,
printf(LOG_WARN "Unrecognized MADT entry #%d, type=%d\n", n_madt_entries,
type);
}

View file

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