fix: General fixes
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ MAKEFLAGS += -rR
|
|||||||
ARCH := x86_64
|
ARCH := x86_64
|
||||||
|
|
||||||
# Default user QEMU flags. These are appended to the QEMU command calls.
|
# Default user QEMU flags. These are appended to the QEMU command calls.
|
||||||
QEMUFLAGS := -m 2G -s -S -d int -D qemu.log
|
QEMUFLAGS := -m 2G -d int -D qemu.log
|
||||||
|
|
||||||
override IMAGE_NAME := os220-$(ARCH)
|
override IMAGE_NAME := os220-$(ARCH)
|
||||||
|
|
||||||
|
|||||||
@@ -57,11 +57,11 @@ namespace Hal {
|
|||||||
|
|
||||||
ACPI::ACPI(XSDP* xsdp) {
|
ACPI::ACPI(XSDP* xsdp) {
|
||||||
if (xsdp->TestChecksum() != true) {
|
if (xsdp->TestChecksum() != true) {
|
||||||
KernelLogStream(ERROR, "ACPI") << "Checksum failed for (R/X)SDT!";
|
KernelLogStream(ERROR, "ACPI") << "Checksum failed for SDT!";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
KernelLogStream(OK, "ACPI") << "Checksum passed for (R/X)SDT!";
|
KernelLogStream(OK, "ACPI") << "Checksum passed for SDT";
|
||||||
|
|
||||||
|
|
||||||
KernelLogStream(INFO, "ACPI") << "OEM ID: " << xsdp->GetOEMID();
|
KernelLogStream(INFO, "ACPI") << "OEM ID: " << xsdp->GetOEMID();
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <CppLib/Vector.hpp>
|
#include <CppLib/Vector.hpp>
|
||||||
|
|
||||||
|
typedef const char* CString;
|
||||||
|
|
||||||
namespace kcp {
|
namespace kcp {
|
||||||
vector<const char*> splitstr(const char* str, char delimiter);
|
vector<const char*> splitstr(CString str, char delimiter);
|
||||||
};
|
};
|
||||||
@@ -99,42 +99,13 @@ namespace Kt
|
|||||||
|
|
||||||
class KernelLogStream {
|
class KernelLogStream {
|
||||||
KernelOutStream localStream{};
|
KernelOutStream localStream{};
|
||||||
KernelLogLevel level;
|
|
||||||
|
|
||||||
const char* componentName = "";
|
const char* componentName = "";
|
||||||
|
|
||||||
public:
|
public:
|
||||||
KernelLogStream(KernelLogLevel desiredLevel, const char* desiredComponentName) {
|
KernelLogStream(KernelLogLevel, const char* desiredComponentName) { /* level for potential future rich event logging */
|
||||||
level = desiredLevel;
|
|
||||||
componentName = desiredComponentName;
|
componentName = desiredComponentName;
|
||||||
|
|
||||||
switch (level) {
|
|
||||||
case INFO: {
|
|
||||||
localStream << screen::colors::cyan << "INFO " << screen::colors::white;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case WARNING: {
|
|
||||||
localStream << screen::colors::yellow << "WARNING " << screen::colors::white;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case ERROR: {
|
|
||||||
localStream << screen::colors::red << "ERROR " << screen::colors::white;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case DEBUG: {
|
|
||||||
localStream << screen::colors::magenta << "DEBUG " << screen::colors::white;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case OK: {
|
|
||||||
localStream << screen::colors::green << "OK " << screen::colors::white;
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
localStream << componentName << ": ";
|
localStream << componentName << ": ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user