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"); }