diff options
author | Marvin Borner | 2020-04-15 21:24:27 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-15 21:24:27 +0200 |
commit | d549c18ac15d531bcdb067180d1d895cf952b59f (patch) | |
tree | 21086cb3b63259490e68703ea34766004108b7ea | |
parent | e07894d21a0101b10ee6ad851773b725cbb9150d (diff) |
Added awesome logging colors
-rw-r--r-- | src/kernel/fs/ata.c | 3 | ||||
-rw-r--r-- | src/kernel/kernel.c | 1 | ||||
-rw-r--r-- | src/kernel/system.c | 2 |
3 files changed, 1 insertions, 5 deletions
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); |