From bc82695e267bc668d5b34d9f11fbf0d015f78911 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 22 Mar 2019 15:16:37 +0100 Subject: [PATCH] stuff ! --- kaleid/kernel/init/init.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/kaleid/kernel/init/init.c b/kaleid/kernel/init/init.c index a74e80e..67055aa 100644 --- a/kaleid/kernel/init/init.c +++ b/kaleid/kernel/init/init.c @@ -33,9 +33,12 @@ // void InitBootInfo(multiboot_info_t *mbi) { + extern uint MB_header; + char okStr[] = "available"; + char noStr[] = "unavailable"; + // We need the multiboot structure KalAlwaysAssert(mbi); - extern uint MB_header; //Retrieves the bootloader flags to ensure infos are valid GetBootInfo(btldr).grubFlags = mbi->flags; @@ -85,20 +88,23 @@ void InitBootInfo(multiboot_info_t *mbi) } //Now we check (debug) + DebugLog("\n[InitBootInfo] Flags : %b", + GetBootInfo(btldr).grubFlags); DebugLog("\n[InitBootInfo] Boot loader %s", - GetBootInfo(btldr).valid ? "present" : ""); + GetBootInfo(btldr).valid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] Boot drive %s", - GetBootInfo(drives).drvValid ? "present" : ""); + GetBootInfo(drives).drvValid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] Disk buffer %s", - GetBootInfo(drives).bufferValid ? "present" : ""); + GetBootInfo(drives).bufferValid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] Basic mem %s", - GetBootInfo(memory).memValid ? "present" : ""); + GetBootInfo(memory).memValid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] Memory map %s", - GetBootInfo(memory).mapValid ? "present" : ""); + GetBootInfo(memory).mapValid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] ROM table %s", - GetBootInfo(firmware).romValid ? "present" : ""); + GetBootInfo(firmware).romValid ? &okStr : &noStr); DebugLog("\n[InitBootInfo] APM table %s", - GetBootInfo(firmware).apmValid ? "present\n" : "\n"); + GetBootInfo(firmware).apmValid ? &okStr : &noStr); + DebugLog("\n"); }