From d549c18ac15d531bcdb067180d1d895cf952b59f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 15 Apr 2020 21:24:27 +0200 Subject: Added awesome logging colors --- src/kernel/fs/ata.c | 3 --- src/kernel/kernel.c | 1 - src/kernel/system.c | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/kernel/fs/ata.c b/src/kernel/fs/ata.c index 952261f..96cc270 100644 --- a/src/kernel/fs/ata.c +++ b/src/kernel/fs/ata.c @@ -281,10 +281,7 @@ void ata_find(uint32_t device, uint16_t vendor_id, uint16_t device_id, void *ext void ata_init() { - log("0x%x", ata_device); pci_scan(&ata_find, -1, &ata_device); - serial_printf("0x%x - ", ata_device); - log("0x%x", ata_device); irq_install_handler(32 + 14, ata_handler); diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index e0c4f54..08980cf 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -50,7 +50,6 @@ void kernel_main(uint32_t magic, multiboot_info_t *grub_header) network_install(); sti(); - log("%x", 0x42); vfs_init(); ata_init(); ext2_init("/dev/hda", "/"); diff --git a/src/kernel/system.c b/src/kernel/system.c index 9a181f3..1133063 100644 --- a/src/kernel/system.c +++ b/src/kernel/system.c @@ -84,7 +84,7 @@ void _warn(const char *f, const char *fmt, ...) void _log(const char *f, const char *fmt, ...) { - serial_printf("[%s] ", f); + serial_printf("\x1B[34m[%s]\x1B[37m ", f); va_list args; va_start(args, fmt); serial_vprintf(fmt, args); -- cgit v1.2.3