From e07894d21a0101b10ee6ad851773b725cbb9150d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 15 Apr 2020 21:17:41 +0200 Subject: Used macro magic to implement function-based logs --- src/kernel/lib/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/lib/memory.c') diff --git a/src/kernel/lib/memory.c b/src/kernel/lib/memory.c index 4763ca0..3202691 100644 --- a/src/kernel/lib/memory.c +++ b/src/kernel/lib/memory.c @@ -40,10 +40,10 @@ multiboot_info_t *multiboot_header; void memory_print() { if (multiboot_header->flags & MULTIBOOT_INFO_MEMORY) { - serial_printf("Mem lower: 0x%x", multiboot_header->mem_lower); - serial_printf("Mem upper: 0x%x", multiboot_header->mem_upper); + log("Mem lower: 0x%x", multiboot_header->mem_lower); + log("Mem upper: 0x%x", multiboot_header->mem_upper); } else { - serial_printf("No memory information available!"); + log("No memory information available!"); } } -- cgit v1.2.3