aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/kapi/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/kapi/system.cpp')
-rw-r--r--kernel/src/kapi/system.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/src/kapi/system.cpp b/kernel/src/kapi/system.cpp
index 1cca82e..cdde049 100644
--- a/kernel/src/kapi/system.cpp
+++ b/kernel/src/kapi/system.cpp
@@ -1,8 +1,9 @@
#include "kapi/system.hpp"
-#include "kapi/cio.hpp"
#include "kapi/cpu.hpp"
+#include <kstd/print>
+
#include <source_location>
#include <string_view>
@@ -12,8 +13,8 @@ namespace teachos::system
[[gnu::weak]]
auto panic(std::string_view message, std::source_location location) -> void
{
- cio::println_error("[PANIC] in {} : {} @ {}:{}", location.function_name(), message, location.file_name(),
- location.line());
+ kstd::println(kstd::print_sink::stderr, "[PANIC] in {} : {} @ {}:{}", location.function_name(), message,
+ location.file_name(), location.line());
cpu::halt();
}